当前位置:网站首页>Matlab notes
Matlab notes
2022-06-25 04:56:00 【xxxibolva】
1. Display as a fraction
>> format rat
>> N./2
ans =1/2 1 3/2 2 5/2
2. produce 20 A random integer
>> n=randi([min,max],[i,j]) % Generate a row vector
[min,max]: The value range of the generated random integer
[i,j]:i That's ok j Column
3. Calculate average
>> avg=mean(n) %n Is a vector or matrix
4. Generate row vectors
y = linspace(x1,x2)
y = linspace(x1,x2,n)
Generate [x1,x2] Yes n A uniformly spaced row vector ,n The default is 100
5. Percentage output
>>p=1543/3000*100;
>>sprintf('%2.2f%%',p)
ans ='51.43%'
Chapter four mapping
1. Graphics keep
hold on/off keep / Refresh the original drawing
No parameters hold Command to switch between two states
>> plot(x,y1)
>> hold on % keep
>> plot(x,y2)
>> hold off % Refresh
notes : Do not close the drawing window halfway through the process !
2. Curve style


![]()
![]()
边栏推荐
- Rce code execution & command execution (V)
- 哪个编程语言实现hello world最烦琐?
- 【FLink】access closed classloader classloader.check-leaked-classloader
- Heavy broadcast | phase shift method + mathematical principle derivation of multi frequency heterodyne + implementation
- CTF_ Web: Changan cup-2021 old but a little new & asuka
- 多睡觉,能减肥,芝加哥大学最新研究:每天多睡1小时,等于少吃一根炸鸡腿...
- [image fusion] image fusion based on MATLAB directional discrete cosine transform and principal component analysis [including Matlab source code 1907]
- 基于Cortex-M3、M4的精准延时(系统定时器SysTick延时,可用于STM32、ADuCM4050等)
- dotnet-exec 0.4.0 released
- 固态硬盘开盘数据恢复的方法
猜你喜欢

"Daily practice, happy water" 1108 IP address invalidation

How to open the DWG file of the computer

基于SSH实现的学生成绩管理系统

Startup mode of SoC verification environment

第九章 APP项目测试(2) 测试工具

哪个编程语言实现hello world最烦琐?

File upload vulnerability shooting range upload labs learning (pass1-pass5)

ASEMI大功率场效应管和三极管的区别

How to download and use Xiaobai one click reload on the official website

File upload vulnerability (III)
随机推荐
初识 Flutter 的绘图组件 — CustomPaint
Fun CMD command line~
Integrate CDN to create the ultimate service experience for customers!
Huawei Hongmeng development lesson 4
Google Earth engine (GEE) - Global jrc/gsw1_ 1 / batch download of yearlyhistory dataset (China region)
Why PHP is not safe
Opensea PHP development kit
Why does the SQL statement hit the index faster than it does not?
How to make colleagues under the same LAN connect to their own MySQL database
Bingbing's learning notes: implementation of circular queue
cannot import name ‘escape’ from ‘jinja2’【成功解决】
Filter & listener (XIV)
Eyeshot Ultimate 2022 Crack By Xacker
Teach you to write non maintainable PHP code step by step
Deep learning - several types of learning
dotnet-exec 0.4.0 released
Ranorex Studio 10.1 Crack
leetcode1221. Split balance string
Which programming language is the most cumbersome to implement Hello world?
Record the problem of C # print size once