s-plane grid lines.
sgrid()
sgrid(zeta,wn [,colors])
sgrid(['new',] zeta,wn [,colors])
sgrid(zeta,wn [,'new'] [,colors])
:
Plots selected curves of constant damping ratio (selection given by zeta) and constant natural frequency (selection given by wn).
The colors argument may be used to assign a color for constant damping ratio curves ( colors(2)) and for constant natural frequency curves ( colors(1)).
The sgrid function is often used to draw a grid for evens root locus of continuous time linear systems. In such a case the sgrid function should be called after the call to evans. For discrete time linear systems one should use zgrid function instead.
The optional argument ‘new’ can be used to erase the graphic window before plotting the grid.
//sgrid
`clf`_();sgrid(0:0.2:1,[0.2 0.6 1 1.7 2])
H=`syslin`_('c',352*`poly`_(-5,'s')/`poly`_([0,0,2000,200,25,1],'s','c'));
`clf`_();`evans`_(H,100);sgrid()