Text-only Table of Contents (frame/ no frame)
(27) Matlab Subplots Previous Top Next

 Subplots



subplot - display multiple plots in the same window
subplot (nrows,ncols,plot_number)


Try:

 x=0:.1:2*pi;
subplot(2,2,1);
plot(x,sin(x));
subplot(2,2,2);
plot(x,cos(x));
subplot(2,2,3)
plot(x,exp(-x));
subplot(2,2,4);
plot(peaks);

picture of 4 plots made using subplot command











Previous Top Next


Matlab-subplots.src  last modified Sep 29, 2009 Introduction Table of Contents
(frame/no frame)
Printable
(single file)
© Dartmouth College