Simulink Control Design™ - MathWorks

(Tuis.) #1
The following table lists some common ways of specifying parameter samples.

Parameter Sample-Space Type How to Specify the Parameter Samples
Linearly varying param.Value =
linspace(A_min,A_max,num_samples)
Logarithmically varying param.Value =
logspace(A_min,A_max,num_samples)
Random param.Value = rand(1,num_samples)
Custom param.Value = custom_vector

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, suppose that Kpid is
a vector of PID gains. The first entry in that vector, Kpid, is used as a gain value in a
block in your model. Use the following commands to vary that gain using the values given
in a vector Kpvals:

param.Name = 'Kpid(1)';
param.Value = Kpvals;

After you create the structure param, pass it to findop as the param input argument.

Multidimension Parameter Grids


When you vary more than one parameter at a time, you generate parameter grids of
higher dimension. For example, varying two parameters yields a parameter matrix, and
varying three parameters yields a 3-D parameter grid. Consider the following parameter
grid used for batch trimming:

1 Steady-State Operating Points

Free download pdf