Main Content


Plot passivity of S-parameters object



passivity(s) plots the passivity of S-parameter object, s over a range of frequencies specified in s.Frequencies. Passivity is measured by the two-norm of the frequency-dependent transfer function H(f).

[ns,violationindex] = passivity(s) plots the passivity and returns the data of the passivity plot.


collapse all

Read the file, sawfilter.s2p.

S = sparameters('sawfilter.s2p');

Plot the passivity of the 2-by-2 S-parameters.


Figure contains an axes. The axes with title Data not passive, max norm(H) is 1 + 1.57e-01 at 2.4 GHz contains 4 objects of type line.

Input Arguments

collapse all

S-parameters, specified as an RF Toolbox™ s-parameter function object. To create this type of object, use the sparameters function.

Output Arguments

collapse all

Two-norm transfer function H(f) at each frequency in s.Frequencies, returned as a column vector.

Data Types: double

Frequencies indices where passivity is violated (norm(H)>1), returned as a column vector.

Data Types: double

Introduced in R2019a