Simulink Control Design™ - MathWorks

(Tuis.) #1
linsys is the linear approximation of the plant at the model operating point.

Linearize Model at Specified Operating Point

Open the Simulink model.

mdl = 'magball';
open_system(mdl)

Find a steady-state operating point at which the ball height is 0.05. Create a default
operating point specification, and set the height state to a known value.

opspec = operspec(mdl);
opspec.States(5).Known = 1;
opspec.States(5).x = 0.05;

Trim the model to find the operating point.

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

Specify linearization input and output signals to compute the closed-loop transfer
function.

io(1) = linio('magball/Desired Height',1,'input');
io(2) = linio('magball/Magnetic Ball Plant',1,'output');

Linearize the model at the specified operating point using the specified I/O set.

15 Alphabetical List

Free download pdf