%% Remove Parameter From sdo.ParameterSpace Object
% Create an sdo.ParameterSpace object, ps, for the Ac and K parameters of the sdoHydraulicCylinder model.

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

%
% Remove K from ps.

ps = removeParameter(ps,p(2))

%
% Remove Ac from ps using the parameter name.

ps = removeParameter(ps,'Ac');

% Copyright 2015 The MathWorks, Inc.