1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
8
<TYPE>Scilab Function</TYPE>
10
<DATE>April 1993</DATE>
12
<SHORT_DESCRIPTION name="bode">Bode plot</SHORT_DESCRIPTION>
15
<CALLING_SEQUENCE_ITEM>bode(sl,[fmin,fmax] [,step] [,comments]
16
)</CALLING_SEQUENCE_ITEM>
18
<CALLING_SEQUENCE_ITEM>bode(sl,frq [,comments] )</CALLING_SEQUENCE_ITEM>
20
<CALLING_SEQUENCE_ITEM>bode(frq,db,phi
21
[,comments])</CALLING_SEQUENCE_ITEM>
23
<CALLING_SEQUENCE_ITEM>bode(frq, repf [,comments])</CALLING_SEQUENCE_ITEM>
29
<PARAM_NAME>sl</PARAM_NAME>
32
<SP>: <VERB>syslin</VERB> list (SISO or SIMO linear system) in
33
continuous or discrete time.</SP>
38
<PARAM_NAME>fmin,fmax</PARAM_NAME>
41
<SP>: real (frequency bounds (in Hz))</SP>
46
<PARAM_NAME>step</PARAM_NAME>
49
<SP>: real (logarithmic step.)</SP>
54
<PARAM_NAME>comments</PARAM_NAME>
57
<SP>: vector of character strings (captions).</SP>
62
<PARAM_NAME>frq</PARAM_NAME>
65
<SP>: row vector or matrix (frequencies (in Hz) ) (one row for each
71
<PARAM_NAME>db</PARAM_NAME>
74
<SP>: row vector or matrix ( magnitudes (in Db)). (one row for each
80
<PARAM_NAME>phi</PARAM_NAME>
83
<SP>: row vector or matrix ( phases (in degree)) (one row for each
89
<PARAM_NAME>repf</PARAM_NAME>
92
<SP>: row vector or matrix of complex numbers (complex frequency
100
<P>Bode plot, i.e magnitude and phase of the frequency response of
103
<P><VERB>sl</VERB> can be a continuous-time or discrete-time SIMO system
104
(see <VERB>syslin</VERB>). In case of multi-output the outputs are plotted
105
with different symbols.</P>
107
<P>The frequencies are given by the bounds <VERB>fmin,fmax</VERB> (in Hz)
108
or by a row-vector (or a matrix for multi-output) <VERB>frq</VERB>.</P>
110
<P><VERB>step</VERB> is the ( logarithmic ) discretization step. (see
111
<VERB>calfrq</VERB> for the choice of default value).</P>
113
<P><VERB>comments</VERB> is a vector of character strings (captions).</P>
115
<P><VERB>db,phi</VERB> are the matrices of modulus (in Db) and phases (in
116
degrees). (One row for each response).</P>
118
<P><VERB>repf</VERB> matrix of complex numbers. One row for each
121
<P>Default values for <VERB>fmin</VERB> and <VERB>fmax</VERB> are
122
<VERB>1.d-3</VERB>, <VERB>1.d+3</VERB> if <VERB>sl</VERB> is
123
continuous-time or <VERB>1.d-3</VERB>, <VERB>0.5</VERB> if <VERB>sl</VERB>
124
is discrete-time. Automatic discretization of frequencies is made by
125
<VERB>calfrq</VERB>.</P>
131
h=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01))
132
title='(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)';
133
bode(h,0.01,100,title);
134
h1=h*syslin('c',(s^2+2*0.1*15.1*s+228.01)/(s^2+2*0.9*15*s+225))
136
bode([h1;h],0.01,100,['h1';'h'])
150
<LINK>gainplot</LINK>
158
<LINK>g_margin</LINK>
162
<LINK>p_margin</LINK>
170
<LINK>phasemag</LINK>
b'\\ No newline at end of file'