www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/CreateScatterPlotMatrixwithTwoMatrixInputsExample.m

    %% Create Scatter Plot Matrix with Two Matrix Inputs  

% Copyright 2015 The MathWorks, Inc.


%% 
% Create |X| as a matrix of random data and |Y| as a matrix of integer
% values. Then, create a scatter plot matrix of the columns of |X| against
% the columns of |Y|.
X = randn(50,3);
Y = reshape(1:150,50,3);  
plotmatrix(X,Y)    

%%
% The subplot in the ith row, jth column of the figure is a scatter
% plot of the ith column of |Y| against the jth column of |X|.