gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-23/Ex2335.m
%例23-35 其他特殊绘图指令-2 subplot(2,1,1) a=[1 2 6 7 9 1]; b=[5 1 3 2 4 5]; A=polyarea(a,b) fill(a,b,'b') title(['Area=' num2str(A)]) subplot(2,1,2) x=[1 2 6;7 9 1]; y=[5 1;4 5]; plotmatrix(x,y) title('Matrix x vs Matrix y')