Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Systèmes de Contrôle - CACSD > Analyse linéaire > Stabilité > show_margins

show_margins

display gain and phase margin and associated crossover frequencies

Syntax

show_margins(h)
show_margins(h,'bode')
show_margins(h,'nyquist')

Arguments

h

a SISO linear system (see :syslin).

Description

Given a SISO linear system in continuous or discrete time, show_margins display gain and phase margin and associated crossover frequencies on a bode (the defaut) or nyquist representation of the frequency response of the system.

Examples

//continuous case
h=syslin('c',0.02909+0.11827*%s+0.12823*%s^2+0.35659*%s^3+0.256*%s^4+0.1*%s^5,..
             0.0409+0.1827*%s+1.28225*%s^2+3.1909*%s^3+2.56*%s^4+%s^5);
show_margins(h)
show_margins(h,'nyquist')
//discrete case
h = syslin(0.1,0.01547+0.01599*%z ,%z^2-1.81*%z+0.9048)
show_margins(h)
show_margins(h,'nyquist')

See also

  • p_margin — phase margin and associated crossover frequency
  • g_margin — gain margin and associated crossover frequency
  • bode — Bode plot
  • nyquist — nyquist plot
Report an issue
<< sgrid Stabilité st_ility >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:50:22 CET 2020