标签: matlab plot
请参阅documentation:
grid on
grid off
grid minor
grid minor on
答案 0 :(得分:2)
您可以将轴的XMinorGrid,YMinorGrid和ZMinorGrid属性设置为'on'。
XMinorGrid
YMinorGrid
ZMinorGrid
'on'
surf(peaks) set(gca,'XMinorGrid','on'); set(gca,'YMinorGrid','on'); set(gca,'ZMinorGrid','on');