图画好后从新标度
set(gca,'YTick',0.996)
set(gca,'YTickLabel',{'0.996'})
如果还要标度其他点,如0.500
set(gca,'YTick',[0.500,0.966])
set(gca,'YTickLabel',{'0.500',‘0.966’})
1、方法
一般用format改变精度,format short是单精度;format long是双精度。
也可以用digits。
2、示例
digits(5)
vpa(pi)
digits(10)
vpa(pi)
用set命令