I am using MARGIN to display the Bode plot of my system together with information on the relevant gain and phase margin.
The documentation for MARGIN states:
"When faced with several crossover frequencies, margin returns the smallest gain and phase margins."
However, in my system I have two gain margins, 0.2 and 2.4, but MARGIN chooses to display 2.4 as the gain margin.
Best Answer