matlab备忘
hold on/hold off
xlim([0 10])/ylim([0 10])--指定坐标轴范围
坐标轴设定
randomNumbers = int32(randi([0, 1], [1, n]));-----随机数生成
rand(1, 3, 'double')
Create Arrays of Random Numbers
matlab生成随机数的rand、randi和randn三种形式
generate array of Different random floating numbers in a specific range
how to create random double in specific range?
how to generate random numbers 0 and 1 - MATLAB Answers - MATLAB Central
plot
subplot
lotting two different graphs - MATLAB Answers - MATLAB Central
meshz
surf
how to plot a Matrix? - MATLAB Answers - MATLAB Central
scatter--散点图
disp输出:
三目:
matlab - One-liner for if then - Stack Overflow
How to Write all of an if-statement in a Single Lline? - MATLAB Answers - MATLAB Central
匿名函数:
返回多值:
filter :
【 MATLAB 】filter 函数介绍 之 Filter Data in Sections
数据过滤:
data = [2,0,1;3,0,0;4,0,1;6,0,1;8,0,1];
b= data(data(:,3)==1,:)
编码规范:
其他:
----待续
- 点赞
- 收藏
- 关注作者
评论(0)