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

    %% Group Delay of S-Parameter Data File.
% Find and plot the group delay of the file 'defaultbandpass.s2p'. 

% Copyright 2015 The MathWorks, Inc.


S = sparameters('defaultbandpass.s2p');
freq = S.Frequencies;
gd2 = groupdelay(S,freq);
figure
plot(freq,gd2)