gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-23/Ex2313.m
%例23-13 开关控制函数(M-File) %Ex23-13 axis/box/grid on-off switch x=0:0.1:5; y=10*exp(-x).*x.^2; subplot(4,2,1) plot(x,y) axis on title('axis on') subplot(4,2,2) plot(x,y) axis off title('axis off') subplot(4,2,3) plot(x,y) box on title('box on') subplot(4,2,4) plot(x,y) box off title('box off') subplot(2,1,2) plot(x,y) grid on title('grid on')