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 object. The axes object with title F i t blank n o t blank p a s s i v e , blank H indexOf infinity baseline blank n o r m blank i s blank 1 blank + blank 1 . 7 9 1 e - 0 2 blank a t blank 1 7 . 6 8 1 6 blank G H z . 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