www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/LinearizeModelAtMultipleSnapshotTimesExample.m
%% Linearize Model at Multiple Snapshot Times %% % Open the Simulink model. sys = 'watertank'; open_system(sys) %% % 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. [linsys,linop] = linearize(sys,io,[0,10]);