www.gusucode.com > rf 案例源码程序 matlab代码 > rf/CalculateAndPlotGroupDelayOfRLCNotchFilterExample.m

    %%  Group Delay of RLC Notch Filter
%  Calculate and plot the group delay of an RLC notch filter at a frequency
%  range from 10 GHz through 1000 GHz frequency.

% Copyright 2015 The MathWorks, Inc.


filt = circuit('notch');
add(filt,[1 2],resistor(200))
add(filt,[1 2],inductor(100e-9))
add(filt,[1 2],capacitor(25e-12))
setports(filt,[1 0],[2 0])
freq = 10e6:10e4:1000e6;
gd1 = groupdelay(filt,freq);
figure
plot(freq,gd1)