set(gca,'XLim',[0 2.5]);%X轴的数据显示范围为0-2.5
set(gca,'XTick',[0:0.1:1.5]);%设置要显示坐标刻度的范围
set(gca,'XTickLabel',[0:0.1:1.5]);%给坐标加标签
Matlab中set函数设置坐标轴范围
最新推荐文章于 2024-12-19 11:59:02 发布

set(gca,'XLim',[0 2.5]);%X轴的数据显示范围为0-2.5
set(gca,'XTick',[0:0.1:1.5]);%设置要显示坐标刻度的范围
set(gca,'XTickLabel',[0:0.1:1.5]);%给坐标加标签