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

    %% Extract and Plot Imaginary Part of Z11
% Read the file |default.s2p| as z-parameters and extract Z11. 
Z = zparameters('defaultbandpass.s2p')
z11 = rfparam(Z,1,1);
%%
% Plot imaginary part of Z11.
 plot(Z.Frequencies, imag(z11))