|
发表于 2009-12-15 16:38:41
|
显示全部楼层
>> 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')
>> legend('10*exp(-x).*x.^2')>> 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')
>> legend('10*exp(-x).*x.^2') |
|