www.gusucode.com > rf 案例源码程序 matlab代码 > rf/CalculateSParametersOfTransmissionLineExample.m
%% Calculate S-Parameters of Transmission Line % Analyze a general tranmission line of impedance, 50 ohms, phase velocity % of 299792458 m/s, and line length of 0.01 meters for frequencises 1.0 GHz % to 3.0 GHz. trl = rfckt.txline; f = [1e9:1.0e7:3e9]; analyze(trl,f) %% % Calculate the S11 and S22 parameters in dB. [data,params,freq] = calculate(trl,'S11','S22','dB')