# passiveplot

Compute or plot passivity index as function of frequency

## Syntax

## Description

`passiveplot(`

plots
the relative passivity indices of the dynamic system `G`

)`G`

as
a function of frequency. When `I + G`

is minimum
phase, the relative passivity indices are the singular values of ```
(I
- G)(I + G)^-1
```

. The largest singular value measures the
relative excess `(R < 1)`

or shortage ```
(R
> 1)
```

at each frequency. See `getPassiveIndex`

for
more information about the meaning of the passivity index.

`passiveplot`

automatically chooses the frequency
range and number of points for the plot based on the dynamics of `G`

.

If `G`

is a model with complex coefficients, then
in:

Log frequency scale, the plot shows two branches, one for positive frequencies and one for negative frequencies. The arrows indicate the direction of increasing frequency values for each branch.

Linear frequency scale, the plot shows a single branch with a symmetric frequency range centered at a frequency value of zero.

`passiveplot(___,`

plots
the passivity index for frequencies specified by `w`

)`w`

.

If

`w`

is a cell array of the form`{wmin,wmax}`

, then`passiveplot`

plots the passivity index at frequencies ranging between`wmin`

and`wmax`

.If

`w`

is a vector of frequencies, then`passiveplot`

plots the passivity index at each specified frequency. The vector`w`

can contain both negative and positive frequencies.

You can use this syntax with any of the previous input-argument combinations.

`passiveplot(G1,`

specifies a color, linestyle, and marker for each system in the plot.`LineSpec`

1,...,GN,LineSpecN,___)

`passiveplot(___,`

plots the passivity index with the options set specified in
`plotoptions`

)`plotoptions`

. You can use these options to customize the
plot appearance using the command line. Settings you specify in
`plotoptions`

override the preference settings in the
MATLAB^{®} session in which you run `passiveplot`

.
Therefore, this syntax is useful when you want to write a script to generate
multiple plots that look the same regardless of the local preferences.

## Examples

## Input Arguments

## Output Arguments

## Version History

**Introduced in R2016a**

## See Also

`isPassive`

| `getPassiveIndex`

| `getSectorIndex`

| `sectorplot`

| `sectorplotoptions`