Simulink Control Design™ - MathWorks

(Tuis.) #1
Vary parameters A and b within 10% of their nominal values, and create a 3-by-4
parameter grid.

[A_grid,b_grid] = ndgrid(linspace(0.9*A,1.1*A,3),...
linspace(0.9*b,1.1*b,4));

Create a parameter structure array, specifying the name and grid points for each
parameter.

params(1).Name = 'A';
params(1).Value = A_grid;
params(2).Name = 'b';
params(2).Value = b_grid;

Create a default operating point specification for the model.

opspec = operspec(mdl);

Trim the model using the specified operating point specification and parameter grid.

opt = findopOptions('DisplayReport','off');
op = findop(mdl,opspec,params,opt);

op is a 3-by-4 array of operating point objects that correspond to the specified parameter
grid points.

15 Alphabetical List

Free download pdf