- Structure array — Vary the value of multiple parameters. For example, vary the values
of parameters A and b in the 10% range:
[A_grid,b_grid] = ndgrid(linspace(0.9*A,1.1*A,3),...
linspace(0.9*b,1.1*b,3));
params(1).Name = 'A';
params(1).Value = A_grid;
params(2).Name = 'b';
params(2).Value = b_grid;
When you specify parameter value variations, findop batch trims the model for each
parameter value combination, and returns an array of corresponding operating points. If
param specifies tunable parameters only, then the software batch trims the model using a
single compilation.
If you specify opspec as a single operspec object and the parameter values in param
produce states that conflict with known states in opspec, findop trims the model using
the specifications in opspec. To trim the model at state values derived from the
parameter values, specify opspec as an array of corresponding operspec objects. For an
example, see “Batch Trim Simulink Model for Parameter Variation” on page 15-27.
options — Trimming options
findopOptions option set
Trimming options, specified as a findopOptions option set.
tsnapshot — Simulation snapshot times
scalar | vector
Simulation snapshot times at which to extract the operating point of the model, specified
as a scalar for a single snapshot or a vector for multiple snapshots. findop simulates the
model and computes an operating point for the state of the model at each snapshot time.
Output Arguments
op — Operating point
operating point object | array of operating point objects
Operating point, returned as an operating point object or an array of operating point
objects. The dimensions of op depend on the specified parameter variations and either
the operating point specifications or the simulation snapshot time.
findop