Simulink Control Design™ - MathWorks

(Tuis.) #1

To linearize the Water-Tank System block, specify a linearization input and output.


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


Create a linearization option set, and specify the sample time for the linearized model.


options = linearizeOptions('SampleTime',0.1);


Linearize the plant using the specified options.


linsys = linearize(mdl,io,options)


linsys =


A =
H
H 0.995


B =
PID Controll
H 0.02494


C =
H
Water-Tank S 1


D =
PID Controll


linearize
Free download pdf