www.gusucode.com > rf 案例源码程序 matlab代码 > rf/CheckPassivityOfSparameterDataExample.m
%% Check Passivity of S-parameter Data % Read a Touchstone data file. % Copyright 2015 The MathWorks, Inc. S = sparameters('measured.s2p'); %% % Check the passivity of the S-parameters. [passivevar,idx] = ispassive(S); passivevar %% % Get the nonpassive S-parameters. if ~passivevar nonpassivevals = S.Parameters(:,:,idx); end