zl程序教程

您现在的位置是:首页 >  后端

当前栏目

matlab --- plot画图

MATLAB --- 画图 plot
2023-09-11 14:19:53 时间

plot画的图形在上一个plot的figure中:hold on

 

添加图例:legend({'X','Y'})

 

限制X轴Y轴的坐标范围:xlim([380 780]);ylim([0 2]) 或 axis([0,0.8,0,0.9])

 

设置栅格:

法一:

1、grid on

2、Edit - Axes Properties - Ticks - step by XXX

 法二:

 自己画栅格