ispassive - Check passivity of N-port S-parameters
Syntax
[result, index_non_passive] = ispassive(s_params)
Description
[result, index_non_passive] = ispassive(s_params) checks
the passivity of sparams, an array of N-port S-parameters.
If all the S-parameters are passive, ispassive sets result equal
to 1 (true). Otherwise, result is
equal to 0 (false). index_non_passive is
a vector of indices corresponding to the non-passive S-parameters
in sparams. If result is true, index_non_passive is
empty.
Examples
Check the passivity of an S-parameters array; separate non-passive
S-parameters into a new array:
%Read a Touchstone data file
ckt = read(rfckt.passive, 'passive.s2p')
%Check the passivity
data = ckt.AnalyzedResult
[result, index] = ispassive(data.S_Parameters);
%Get the non-passive S-parameters
if ~(result)
AllNonPassiveSparams = data.S_Parameters(:,:,index);
FirstNonPassiveSparams = AllNonPassiveSparams(:,:,1)
end
See Also
rationalfit | s2tf | snp2smp
 | h2z | | powergain |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit