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

    %% Passivity of Rationalfit Object
% Converted |measured.s2p| to S-parameter object.
S = sparameters('measured.s2p');
%%
% Extract the S21 parameters and the frequencies of the s-parameters.
s21 = rfparam(S,2,1);
freq = S.Frequencies;
%%
% Rationalfit S21 data.
fit = rationalfit(freq,s21);
%%
% Check if the rationalfit of S21 data is passive.
ispass = ispassive(fit)