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

    %% Create Data Vector From S-Parameter Object
% Read in the file default.s2p into an sparameters object and get the 
% S21 value.

% Copyright 2015 The MathWorks, Inc.

S = sparameters('default.s2p');
s21 = rfparam(S,2,1)