%多图绘制
x=0:0.1:2*pi;
y1=sin(x);
y2=cos(x);
y3=sin(x).*cos(x);
y4=1./x;
% %subplot(n1,n2,n3)n1表示行数n2,表示列数,n3表示第几幅图
% subplot(2,2,1)
% plot(x,y1)
% title('sin')
% subplot(2,2,2)
% plot(x,y2)
% title('cos')
% % subplot(2,2,3)
% % plot(x,y3)
% % title('sin*cos')
% % subplot(2,2,4)
% % plot(x,y4)
% % title('1/x')
% subplot(2,2,[3,4])%第三幅图需要占的位置比较宽,占第三第四的位置
% plot(x,y3)
% title('sin*cos')
%position
% subplot('position',[0.1 0.1 0.5 0.4])
% plot(x,y2)