Skip to Main Content Skip to Search
Product Documentation

allmargin - Gain margin, phase margin, delay margin and crossover frequencies

Syntax

S = allmargin(sys)
S = allmargin(mag,phase,w,ts)

Description

S = allmargin(sys)

allmargin computes the gain margin, phase margin, delay margin and the corresponding crossover frequencies of the SISO open-loop model sys. The allmargin command is applicable to any SISO model, including models with delays.

The output S is a structure with the following fields:

S = allmargin(mag,phase,w,ts) computes the stability margins from the frequency response data mag, phase, w, and the sampling time, ts. Provide magnitude values mag in absolute units, and phase values phase in degrees. You can provide the frequency vector w in any units; allmargin returns frequencies in the same units. allmargin interpolates between frequency points to approximate the true stability margins.

See Also

ltiview | margin

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS