3 5 4
Input Arguments
mdl — Simulink model name
character vector | string
Simulink model name, specified as a character vector or string. The model must be in the
current working folder or on the MATLAB path.
opspec — Operating point specifications
operspec object | array of operspec objects
Operating point specifications for trimming the model, specified as an operspec object
or an array of operspec objects.
If opspec is an array, findop returns an array of corresponding operating points using a
single model compilation.
param — Parameter samples
structure | structure array
Parameter samples for trimming, 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);
15 Alphabetical List