www.gusucode.com > robust 案例源码程序 matlab代码 > robust/ContinuousTimeWeightingFunctionsExample.m
%% Continuous-Time Weighting Functions % Create continuous-time weighting functions by specifying low-frequency % gain, high-frequency gain, and crossover frequencies. % Copyright 2015 The MathWorks, Inc. %% % Create a weighting function with gain of 40 dB at low frequency, rolling % off to -20 dB at high frequency. Specify a crossover frequency of 0.4 rad/s. Wl = makeweight(100,.4,.10); %% % Create a weighting function with gain of -10 dB at low frequency, rising % to 40 dB at high frequency. Specify a crossover frequency of 20 rad/s. Wh = makeweight(0.316,20,100); %% % Plot the magnitudes of the weighting functions to confirm that they meet % the response specifications. bodemag(Wl,Wh)