matlab 函数大全——绘图的一般步骤
步 骤 典 型 代 码
1. 准备绘图数据 x = 0:0.2:12;y1 = bessel(1,x);
2. 选择一个窗口并在窗口中给图形定位 figure(1) ,subplot(2,2,1)
3. 调用基本的绘图函数 h = plot(x,y1,x,y2,x,y3);
4. 选择线型和标记特性 set(h,'LineWidth',2,{'LineStyle'},{'--';':';'-.'})
5. 设置坐标轴的极限值、标记符号和网格线 axis()
6. 使用坐标轴标签、图例和文本对图形进行注释 xlabel('Time')ylabel('Amplitude')
7. 输出图形 print -depsc -tiff -r200 myplot
关于本帖内容欢迎大家踊跃讨论,与在下交流!
页:
[1]