- Scilab Online Help
- CACSD
- abcd
- abinv
- arhnk
- arl2
- arma
- arma2p
- armac
- armax
- armax1
- arsimul
- augment
- balreal
- bilin
- black
- bode
- bstap
- cainv
- calfrq
- canon
- ccontrg
- chart
- cls2dls
- colinout
- colregul
- cont_frm
- cont_mat
- contr
- contrss
- copfac
- csim
- ctr_gram
- dbphi
- dcf
- ddp
- des2ss
- des2tf
- dhinf
- dhnorm
- dscr
- dsimul
- dt_ility
- dtsi
- equil
- equil1
- evans
- feedback
- findABCD
- findAC
- findBD
- findBDK
- findR
- findx0BD
- flts
- fourplan
- frep2tf
- freq
- freson
- fspecg
- fstabst
- g_margin
- gainplot
- gamitg
- gcare
- gfare
- gfrancis
- gtild
- h2norm
- h_cl
- h_inf
- h_inf_st
- h_norm
- hallchart
- hankelsv
- hinf
- imrep2ss
- inistate
- invsyslin
- kpure
- krac2
- lcf
- leqr
- lft
- lin
- linf
- linfn
- linmeq
- lqe
- lqg
- lqg2stan
- lqg_ltr
- lqr
- ltitr
- m_circle
- macglov
- markp2ss
- minreal
- minss
- mucomp
- narsimul
- nehari
- nicholschart
- noisegen
- nyquist
- obs_gram
- obscont
- observer
- obsv_mat
- obsvss
- p_margin
- parrot
- pfss
- phasemag
- ppol
- prbs_a
- projsl
- reglin
- repfreq
- ric_desc
- ricc
- riccati
- routh_t
- rowinout
- rowregul
- rtitr
- sensi
- sgrid
- show_margins
- sident
- sm2des
- sm2ss
- sorder
- specfact
- ss2des
- ss2ss
- ss2tf
- st_ility
- stabil
- svplot
- sysfact
- syssize
- tf2des
- tf2ss
- time_id
- trzeros
- ui_observer
- unobs
- zeropen
- zgrid
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
bode
Bode plot
Calling Sequence
bode(sl,[fmin,fmax] [,step] [,comments] ) bode(sl,frq [,comments] ) bode(frq,db,phi [,comments]) bode(frq, repf [,comments])
Arguments
- sl
syslin
list (SISO or SIMO linear system) in continuous or discrete time.- fmin,fmax
real (frequency bounds (in Hz))
- step
real (logarithmic step.)
- comments
vector of character strings (captions).
- frq
row vector or matrix (frequencies (in Hz) ) (one row for each SISO subsystem).
- db
row vector or matrix ( magnitudes (in Db)). (one row for each SISO subsystem).
- phi
row vector or matrix ( phases (in degree)) (one row for each SISO subsystem).
- repf
row vector or matrix of complex numbers (complex frequency response).
Description
Bode plot, i.e magnitude and phase of the frequency response of
sl
.
sl
can be a continuous-time or discrete-time SIMO
system (see syslin
). In case of multi-output the
outputs are plotted with different symbols.
The frequencies are given by the bounds fmin,fmax
(in Hz) or by a row-vector (or a matrix for multi-output)
frq
.
step
is the ( logarithmic ) discretization step.
(see calfrq
for the choice of default value).
comments
is a vector of character strings
(captions).
db,phi
are the matrices of modulus (in Db) and
phases (in degrees). (One row for each response).
repf
matrix of complex numbers. One row for each
response.
Default values for fmin
and
fmax
are 1.d-3
,
1.d+3
if sl
is continuous-time or
1.d-3
, 0.5
/sl.dt (nyquist frequency)
if sl
is discrete-time. Automatic discretization of
frequencies is made by calfrq
.
The
Examples
s=poly(0,'s') h1=syslin('c',(s^2+2*0.9*10*s+100)/(s^2+2*0.3*10.1*s+102.01)) num=22801+4406.18*s+382.37*s^2+21.02*s^3+s^4; den=22952.25+4117.77*s+490.63*s^2+33.06*s^3+s^4 h2=syslin('c',num/den); clf();bode([h1;h2],0.01,100,['h1';'h2'])
<< black | CACSD | bstap >> |