matlab --- plot画图

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

 法二:

 自己画栅格

 

posted @ 2018-01-06 21:15  流水灯  阅读(554)  评论(0编辑  收藏  举报