function [h]=nan_plotmatrix(x,y,param1,param2)
nan_plotmatrix(Y) nan_plotmatrix(X,Y) nan_plotmatrix(...,LineSpec) nan_plotmatrix(AX,...) [H] = nan_plotmatrix(...)
line specification, '.' is the default (see help plot)
uses AX as the BigAx instead of gca()
list of handles to the objects
plotmatrix(X,Y) scatter plots the columns of X against the columns of Y. If X is P-by-M and Y is P-by-N, PLOTMATRIX will produce a N-by-M matrix of axes. plotmatrix(Y) is the same as plotmatrix(Y,Y) except that the diagonal will be replaced by hist(Y(:,i)).
x = rand(50,3,'normal'); y = x*[-1 2 1;2 0 1;1 -2 3;]'; nan_plotmatrix(y,'r*')