%% Scatter Plot of Parameter Samples
% Sample the Ac and K parameters of the sdoHydraulicCyclinder model. Use a scatter plot to analyze the samples.
% Load the sdoHydraulicCyclinder model.

load_system('sdoHydraulicCylinder');

%
% Generate 100 samples of the Ac and K parameters.

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

% The first operation obtains the Ac and K parameters as a vector, p. The second operation creates an sdo.ParameterSpace object, ps, that specifies the probability distributions of the parameter samples. The third operation generates 100 samples of each parameter, returned as a Table, X.
%
% Create a scatter plot of X.

sdo.scatterPlot(X);

% Copyright 2012 The MathWorks, Inc.