param — Parameter samples
structure | structure array
Parameter samples for linearization, specified as one of the following:
- Structure — Vary the value of a single parameter by specifying param as a structure
with the following fields:- Name — Parameter name, specified as a character vector or string. You can specify
any model parameter that is a variable in the model workspace, the MATLAB
workspace, or a data dictionary. If the variable used by the model is not a scalar
variable, specify the parameter name as an expression that resolves to a numeric
scalar value. For example, to use the first element of vector V as a parameter, use:
- Name — Parameter name, specified as a character vector or string. You can specify
param.Name = 'V(1)';
- Value — Parameter sample values, specified as a double array.
For example, vary the value of parameter A in the 10% range:
param.Name = 'A';
param.Value = linspace(0.9*A,1.1*A,3);
- 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;
For more information, see “Specify Parameter Samples for Batch Linearization” on page
3-62.
If param specifies tunable parameters only, the software batch linearizes the model using
a single model compilation.
To compute the offsets required by the LPV System block, specify param, and set
options.StoreOffsets to true. You can then return additional linearization
information in info, and extract the offsets using getOffsetsForLPV.
stateorder — State order in linearization results
cell array of character vectors
15 Alphabetical List