www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/LinearizeModelAtSimulationSnapshotTimeExample.m
%% Linearize Model at Simulation Snapshot Time %% % 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| for |10| seconds and linearize the model. linsys = linearize(sys,io,10);