www.gusucode.com > control 案例程序 matlab源码代码 > control/CreateOptionsSetforlooptuneExample.m
%% Create Options Set for looptune % Create an options set for a |looptune| run using three random restarts. % Also, set the target gain and phase margins to 6 dB and 50 degrees, respectively, % and limit the closed-loop pole magnitude to 100. %% options = looptuneOptions('RandomStart',3','GainMargin',6,... 'PhaseMargin',50,'SpecRadius',100); %% % Alternatively, use dot notation to set the values of |options|. options = looptuneOptions; options.RandomStart = 3; options.GainMargin = 6; options.PhaseMargin = 50; options.SpecRadius = 100;