uses only one model compilation. To obtain the operating points that correspond to the
parameter value combinations, batch trim your model using param before
linearization. For an example that uses the linearize command, see “Batch
Linearize Model at Multiple Operating Points Derived from Parameter Variations” on
page 3-25.
- Multiple snapshot times. When you batch linearize mdl, the software simulates the
model for each snapshot time and parameter grid point combination. This operation
can be computationally expensive.
blocksub — Substitute linearizations for blocks and model subsystems
structure | structure array
Substitute linearizations for blocks and model subsystems, specified as a structure or an
n-by-1 structure array, where n is the number of blocks for which you want to specify a
linearization. Use blocksub to specify a custom linearization for a block or subsystem.
For example, you can specify linearizations for blocks that do not have analytic
linearizations, such as blocks with discontinuities or triggered subsystems.
You can batch linearize your model by specifying multiple substitute linearizations for a
block. Use this functionality, for example, to study the effects of varying the linearization
of a Saturation block on the model dynamics.
Each substitute linearization structure has the following fields:
Name — Block path
Block path of the block for which you want to specify the linearization, specified as a
character vector or string.
Value — Substitute linearization
Substitute linearization for the block, specified as one of the following:
- Double — Specify the linearization of a SISO block as a gain.
- Array of doubles — Specify the linearization of a MIMO block as an nu-by-ny array of
gain values, where nu is the number of inputs and ny is the number of outputs. - LTI model, uncertain state-space model, or uncertain real object — The I/O
configuration of the specified model must match the configuration of the block
specified by Name. Using an uncertain model requires Robust Control Toolbox
software.
slLinearizer