%% Set Scatter Plot Properties Using Handles
% Generate samples of the Ac and K parameters of the sdoHydraulicCyclinder model.

load_system('sdoHydraulicCylinder');
p = sdo.getParameterFromModel('sdoHydraulicCylinder',{'Ac','K'});
ps = sdo.ParameterSpace(p);
X = sdo.sample(ps,100);

%
% Create a scatter plot matrix and return the object handles and the axes handles.

figure
[H,AX,BigAX,P,PAx] = sdo.scatterPlot(X);

% To set properties for the scatter plots, use the handles in H. To set properties for the histograms, use the patch handles in P. To set axes properties, use the axes handles, Ax, BigAX, and PAx.
%
% Specify a title for the plot matrix and add legends specifying the sample distribution for each parameter.

title('Samples of the sdoHydraulicCylinder model parameters Ac and K')
legend(PAx(1),'Ac samples - Uniform distribution')
legend(PAx(2),'K samples - Uniform distribution')

%
% Copyright 2012 The MathWorks, Inc.