Specify Parameter Samples for Batch Linearization
About Parameter Samples
Block parameters configure a Simulink model in several ways. For example, you can use
block parameters to specify various coefficients or controller sample times. You can also
use a discrete parameter, like the control input to a Multiport Switch block, to control the
data path within a model. Varying the value of a parameter helps you understand its
impact on the model behavior.
When using any of the Simulink Control Design linearization tools (or tuning with
slTuner or Control System Tuner) you can specify a set of block parameter values at
which to linearize the model. The full set of values is called a parameter grid or
parameter samples. The tools batch-linearize the model, computing a linearization for
each value in the parameter grid. You can vary multiple parameters, thus extending the
parameter grid dimension. When using the command-line linearization tools, the
linearize command or the slLinearizer or slTuner interfaces, you specify the
parameter samples using a structure with fields Name and Value. In the Linear Analysis
Tool or Control System Tuner, you use the graphical interface to specify parameter
samples.
Which Parameters Can Be Sampled?
You can vary any model parameter whose value is given by a variable in the model
workspace, the MATLAB workspace, or a data dictionary. In cases where the varying
parameters are all tunable (Simulink), the linearization tools require only one model
compilation to compute transfer functions for varying parameter values. This efficiency is
especially advantageous for models that are expensive to compile repeatedly.
For more information, see “Batch Linearization Efficiency When You Vary Parameter
Values” on page 3-10.
Vary Single Parameter at the Command Line
To vary the value of a single parameter for batch linearization with linearize,
slLinearizer, or slTuner, specify the parameter grid as a structure having two fields.
The Name field contains the name of the workspace variable that specifies the parameter.
The Value field contains a vector of values for that parameter to take during
linearization.
3 Batch Linearization