12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

plotmatrixPurpose2plotmatrixDraw scatter plotsSyntaxDescriptionExamplesplotmatrix(X,Y)plotmatrix(...,'LineSpec')[H,AX,BigAx,P] = plotmatrix(...)plotmatrix(X,Y) scatter plots the columns of X against the columns of Y. If Xis p-by-m and Y is p-by-n, plotmatrix produces an n-by-m matrix of axes.plotmatrix(Y) is the same as plotmatrix(Y,Y) except that the diagonal isreplaced by hist(Y(:,i)).plotmatrix(...,'LineSpec') uses a LineSpec to create the scatter plot.Thedefault is '.' .[H,AX,BigAx,P] = plotmatrix(...) returns a matrix of handles to the objectscreated in H, a matrix of handles to the individual subaxes in AX, a handle to abig (invisible) axes that frames the subaxes in BigAx, and a matrix of handlesfor the histogram plots in P. BigAx is left as the current axes so that asubsequent title, xlabel, or ylabel commands are centered with respect tothe matrix of axes.Generate plots of random data.x = randn(50,3); y = x*[-1 2 1;2 0 1;1 -2 3;]';plotmatrix(y,'*r')2-360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!