![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MATLAB
文章平均质量分 68
gkm0120
路漫漫其修远兮,吾将上下而求索!
展开
-
MATLAB 学习过程常用命令记录 (作图)
绘制子图 subplot>> subplot(1,2,1)>> subplot(1,3,1)>> subplot(2,3,1)subplot 函数代表绘制子图,三个参数,第一个代表绘制一共绘制几行小图表,第二个代表绘制几列小图表,第三个代表绘制第几个小图表。此命令也可以用来选定绘制哪个图。注释标记 text>> text(1,5,'线宽度为4')>> subplot(1,2,1)>> text(0.5,0.5,.原创 2021-04-07 09:42:02 · 934 阅读 · 0 评论 -
MATLAB 学习过程常用命令记录 (函数)
匿名函数定义>> f = @(x)x.^2;>> fx = f(1:10)fx = 1 4 9 16 25 36 49 64 81 100>> g = @(x,y)x.^2+y.^2;>> gxy=g(1:10,2:11)gxy = 5 13 25 41 61 85原创 2021-04-07 09:40:23 · 315 阅读 · 0 评论