subplot — divides the current figure into rectangular panes
number of rows
number of cols
vector of pane numbers
Handle of the created axes.
The subplot divides the current figure into rectangular panes numbered row-wise. The parameter p gives the number of the pane, and if p is a vector then the smallest rectangle enclosing the corresponding panes is created. If another axes already exists at the same position then it becomes the current axes but if the newly created axes overlaps existing axes then the latter are destroyed.
t=linspace(0,2*%pi,128); subplot(3,3,1); plot(cos(t),sin(t)); subplot(3,3,[2 3]); plot(t,cos(t)); subplot(3,3,[4 7]); plot(sin(t),t); subplot(3,3,[5 9]); pcolor;