Simulink Control Design™ - MathWorks

(Tuis.) #1
[linsys,linop] = linearize(mdl,io,[0,10]);

Batch Linearize Plant Model and Obtain Linearization Offsets

Open the Simulink model.

mdl = 'watertank';
open_system(mdl)

Vary parameters A and b within 10% of their nominal values.

[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, parameter grid.
Suppress the display of the operating point search report.

15 Alphabetical List

Free download pdf