1
.TH bode 1 "April 1993" "Scilab Group" "Scilab Function"
7
bode(sl,[fmin,fmax] [,step] [,comments] )
8
bode(sl,frq [,comments] )
9
bode(frq,db,phi [,comments])
10
bode(frq, repf [,comments])
15
: \fVsyslin\fR list (SISO or SIMO linear system) in continuous or
19
: real (frequency bounds (in Hz))
22
: real (logarithmic step.)
25
: vector of character strings (captions).
28
: row vector or matrix (frequencies (in Hz) )
29
(one row for each SISO subsystem).
32
: row vector or matrix ( magnitudes (in Db)).
33
(one row for each SISO subsystem).
36
: row vector or matrix ( phases (in degree))
37
(one row for each SISO subsystem).
40
: row vector or matrix of complex numbers (complex frequency response).
42
Bode plot, i.e magnitude and phase of the frequency response of \fVsl\fR.
44
\fVsl\fR can be a continuous-time or discrete-time SIMO system (see \fVsyslin\fR).
45
In case of multi-output the outputs are plotted with different
49
The frequencies are given by the bounds \fVfmin,fmax\fR (in Hz) or by a row-vector
50
(or a matrix for multi-output) \fVfrq\fR.
53
\fVstep\fR is the ( logarithmic ) discretization step. (see \fVcalfrq\fR for the
54
choice of default value).
57
\fVcomments \fR is a vector of character strings (captions).
60
\fVdb,phi\fR are the matrices of modulus (in Db) and phases (in degrees).
61
(One row for each response).
64
\fVrepf \fR matrix of complex numbers. One row for each response.
67
Default values for \fVfmin\fR and \fVfmax\fR are
68
\fV1.d-3\fR, \fV1.d+3\fR if \fVsl\fR is continuous-time
69
or \fV1.d-3\fR, \fV0.5\fR if \fVsl\fR is discrete-time.
70
Automatic discretization of frequencies is made by \fVcalfrq\fR.
74
h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
75
title='(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)';
76
bode(h,0.01,100,title);
77
h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
79
bode([h1;h],0.01,100,['h1';'h'])
82
black, nyquist, gainplot, repfreq, g_margin, p_margin, calfrq, phasemag