File: bode.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (82 lines) | stat: -rw-r--r-- 2,206 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.TH bode 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
bode - Bode plot
.SH CALLING SEQUENCE
.nf
bode(sl,[fmin,fmax] [,step] [,comments] )
bode(sl,frq [,comments] )
bode(frq,db,phi [,comments])
bode(frq, repf  [,comments])
.fi
.SH PARAMETERS
.TP 15
sl
: \fVsyslin\fR list (SISO or SIMO linear system) in continuous or 
discrete time.
.TP
fmin,fmax
: real (frequency bounds (in Hz)) 
.TP
step      
: real (logarithmic step.)
.TP
comments 
: vector of character strings (captions).
.TP
frq      
: row vector or matrix (frequencies (in Hz) )
(one row for each SISO subsystem).
.TP
db       
: row vector or matrix ( magnitudes (in Db)).
(one row for each SISO subsystem).
.TP
phi      
: row vector or matrix ( phases (in degree))
(one row for each SISO subsystem).
.TP
repf     
: row vector or matrix of complex numbers (complex frequency response).
.SH DESCRIPTION
Bode plot, i.e magnitude and phase of the frequency response of \fVsl\fR.

\fVsl\fR can be a continuous-time or discrete-time SIMO system (see \fVsyslin\fR).
In case of multi-output the outputs are plotted with different
symbols.

.LP
The frequencies are given by the bounds \fVfmin,fmax\fR (in Hz) or by a row-vector
(or a matrix for multi-output) \fVfrq\fR.

.LP
\fVstep\fR is the ( logarithmic ) discretization step. (see \fVcalfrq\fR for the
choice of default value).

.LP
\fVcomments \fR is a vector of character strings (captions).

.LP
\fVdb,phi\fR are the matrices of modulus (in Db) and phases (in degrees). 
(One row for each response).

.LP
\fVrepf \fR matrix of complex numbers. One row for each response.

.LP
Default values for \fVfmin\fR and \fVfmax\fR are
\fV1.d-3\fR, \fV1.d+3\fR if \fVsl\fR is continuous-time
or \fV1.d-3\fR, \fV0.5\fR if \fVsl\fR is discrete-time.
Automatic discretization of frequencies is made by \fVcalfrq\fR.
.SH EXAMPLE
.nf
s=poly(0,'s')
h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
title='(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)';
bode(h,0.01,100,title);
h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
xbasc()
bode([h1;h],0.01,100,['h1';'h'])
.fi
.SH SEE ALSO
black, nyquist, gainplot, repfreq, g_margin, p_margin, calfrq, phasemag