%% Add Parameter with Specified Distribution to Parameter Space Object
% Create an sdo.ParameterSpace object for the Ac and C1 parameters of the sdoHydraulicCylinder model.

load_system('sdoHydraulicCylinder');
p = sdo.getParameterFromModel('sdoHydraulicCylinder',{'Ac','C1'});
ps = sdo.ParameterSpace(p);

%
% Add the K parameter to ps. Specify a normal distribution for K.

pK = sdo.getParameterFromModel('sdoHydraulicCylinder','K');
pKdist = makedist('Normal','mu',pK.Value,'sigma',2);
ps = addParameter(ps,pK,pKdist);

% Copyright 2015 The MathWorks, Inc.