Main Content


Plot passivity of N-by-N rationalfit function output



passivity(fit) plots the passivity of the input, fit, over a range of frequencies. Passivity is measured by computing the H-infinity norm of the fit. H-infinity norm is the maximum two-norm of the transfer function H over all the frequencies (0, Inf).

passivity(fit,xlimits) plots the passivity with X-axis limits of the plot.

[maxfreq,maxvalue,freqs,ns] = passivity(fit) returns the data that is used to generate the plot.


collapse all

Read the file, passive.s2p and fit the 2-by-2 S-parameters.

S = sparameters('passive.s2p');
fit = rationalfit(S);

Test the passivity of the 2-by-2 fit.

ans = logical

Plot the passivity of the 2-by-2 fit.

passivity(fit,[1e9 40e9])

Figure contains an axes. The axes with title Fit not passive, H_\infty norm is 1 + 1.791e-02 at 17.6816 GHz. contains 4 objects of type line.

Input Arguments

collapse all

N-by-N array, specified as rfmodel.rational objects returned by a rationalfit function.

Data Types: double

X-axis limits of the plot, specified as a 1-by-2 vector.

Data Types: double

Output Arguments

collapse all

Maximum norm(H) over the frequencies (0, Inf), returned as a scalar.

Data Types: double

Frequency at which norm(H) is equal to maximum value, returned as a scalar in hertz.

Data Types: double

Two-norm of the transfer function H, returned as a column vector.

Data Types: double

Frequency values, returned as a column vector.

Data Types: double

Introduced in R2019a