Code covered by the BSD License  

Highlights from
RF Utilities V1.2

image thumbnail
from RF Utilities V1.2 by Neill Tucker
Routines for Smith Chart, TDR, Mixed-Mode S-params, Matching

L1=ildrawc(Snn,Freq,Zo,linetype);
function L1=ildrawc(Snn,Freq,Zo,linetype);
% Mismatch Loss trace
%
% Plot additional Mismatch Loss trace on existing plot in specified colour
%
% Usage : ildrawc(Snn,Freq,Zo,linetype)
%         
% e.g.    ilossc(S21,Freq,50,'r-')
%         ildrawc(S12,Freq,50,'g-') 

% N.Tucker www.activefrance.com 2008

hold on;
L1=20.*log10(abs(Snn));      % Insertion loss dB
plot(Freq,L1,linetype,'LineWidth',2);
hold off;

Contact us at files@mathworks.com