www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/SpecifySampleTimeOfLinearizedModelExample.m
%% Specify Sample Time of Linearized Model %% % Open the Simulink model. sys = 'watertank'; open_system(sys) %% % Specify the block path of the plant. blockpath = 'watertank/Water-Tank System'; %% % 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(sys,blockpath,options) %% % The linearized plant is a discrete-time state-space model with a sample % time of |0.1|.