subplot(2,2,1); bar(data); grid on; title('条状图'); subplot(2,2,2); area(data); grid on; title('面积图'); A=[0.31 0.26 0.19 0.08]; subplot(2,2,3); pie(A); title('饼图'); x=0:pi/20:pi*0.5; y=2*exp(-x).*cos(2*x); subplot(2,2,4); stem(x,y,'fill'); grid on;
title('火柴杆图');
4、 思考题:要绘制出如图所示的图形,请正确填写下列空格 subplot( , , );plot(1:10);grid on; subplot( , , );plot(peaks);grid on; subplot( , , );plot(membrane);grid on; subplot( , , );surf(membrane);grid on;