- Array of logical values — Logical array index of linearizations of interest. Suppose that
you vary two parameters, par1 and par2, and want to extract the linearization for the
combination of par1 > 0.5 and par2 <= 5. Use:
params = s.Parameters;
mdl_index = params(1).Value>0.5 & params(2).Value <= 5;
The expression params(1).Value>0.5 & params(2).Value<5 uses logical
indexing and returns a logical array. This logical array is the same size as
params(1).Value and params(2).Value. Each entry contains the logical
evaluation of the expression for corresponding entries in params(1).Value and
params(2).Value.
- Vector of positive integers — Linear index of linearizations of interest. Suppose that
you vary two parameters, par1 and par2, and want to extract the linearization for the
combination of par1 > 0.5 and par2 <= 5. Use:
params = s.Parameters;
mdl_index = find(params(1).Value>0.5 & params(2).Value <= 5);
The expression params(1).Value>0.5 & params(2).Value<5 returns a logical
array. find returns the linear index of every true entry in the logical array
Output Arguments
linsys — Complementary sensitivity function
state-space model
Complementary sensitivity function, returned as described in the following:
- If you did not configure s.Parameters and s.OperatingPoints, the software
calculates linsys using the default model parameter values. The software uses the
model initial conditions as the linearization operating point. linsys is returned as a
state-space model. - If you configured s.Parameters only, the software computes a linearization for each
parameter grid point. linsys is returned as a state-space model array of the same
size as the parameter grid. - If you configured s.OperatingPoints only, the software computes a linearization for
each specified operating point. linsys is returned as a state-space model array of the
same size as s.OperatingPoints.
getCompSensitivity