Simulink Control Design™ - MathWorks

(Tuis.) #1

ans =


3x1 cell array


{'height' }
{'dhdt' }
{'Current'}


Linearize Model at Multiple Snapshot Times


Open the Simulink model.


mdl = 'watertank';
open_system(mdl)


To compute the closed-loop transfer function, first specify the linearization input and
output signals.


io(1) = linio('watertank/PID Controller',1,'input');
io(2) = linio('watertank/Water-Tank System',1,'output');


Simulate sys and linearize the model at 0 and 10 seconds. Return the operating points
that correspond to these snapshot times; that is, the operating points at which the model
was linearized.


linearize
Free download pdf