pt = {'torque','Motor/PID','Engine Model/1'}
- Vector of linearization I/O objects — Create pt using linio. For example:
pt(1) = linio('scdcascade/setpoint',1,'input');
pt(2) = linio('scdcascade/Sum',1,'output');
Here, pt(1) specifies an input, and pt(2) specifies an output.
The interface adds all the points specified by pt and ignores their I/O types. The
interface also adds all 'loopbreak' type signals as permanent openings on page 15-
272.
param — Parameter samples
structure | structure array
Parameter samples for linearizing mdl, specified as:
- 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;
slLinearizer