12.14. Gain Margin and Phase Margin Calculations Using MATLAB

The gain and phase margins for a system can be obtained using any one of the following MATLAB commands:

 
margin (n, d)
or
[Gm, Pm, pcf, gcf] = margin(n, d)

where

Gm and Pm are the gain and phase margins, respectively.

pcf is the phase crossover frequency.

gcf is the gain crossover frequency.

The first command returns the gain and phase margins only whereas the second command returns the gain and phase crossover frequencies in addition to gain and phase margin values.

Example 12.18.

Obtain the gain and phase margins, phase crossover and gain crossover frequencies of the following transfer functions:

Solution:

The following program is used for obtaining the results:

%Program to obtain ...

Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.