www.gusucode.com > slcontrol 案例源码程序 matlab代码 > slcontrol/CreateOptionSetforLinearizationExample.m

    %% Create Option Set for Linearization 
% Create a linearization option set that sets the rate conversion method to
% the Tustin method with prewarping at a frequency of 10 rad/s.
% Additionally, instruct the linearization not to omit blocks outside the
% linearization path.

%%  
options = linearizeOptions('RateConversionMethod','prewarp',...
                           'PreWarpFreq',10,...
                           'BlockReduction','off');
                         
%% 
% Alternatively, use dot notation to set the values of |options|. 
options = linearizeOptions;
options.RateConversionMethod = 'prewarp';
options.PreWarpFreq = 10;
options.BlockReduction = 'off';