Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Curso 2007/08
http://www.unirioja.es/cu/rasaenl
Conocimientos previos:
1. Trazado de diagrama de Bode.
2. Trazado de diagrama de Nyquist.
3. Concepto de Margen de Ganancia.
4. Concepto de Margen de Fase.
5. Frecuencia de resonancia.
6. Pico de Resonancia.
7. Ancho de Banda.
8. Sistema de fase mínima.
9. Funciones de MATLAB: bode, margin, nyquist, num2str
0.5
GH 3 =
s + 2 s 2 + s + 0.5
3
FUNCIONES DE MATLAB
w=logspace(-1,4,100)
bode(sys,w). Representa el diagrama de Bode para el vector especificado.
w=logspace(-1,4,100)
[mag,fase]=bode(sys,w). Devuelve el módulo y argumento del sistema.
Segunda forma
w=logspace(-1,4,100)
[Mag,Fas]=bode(sys,w)
[Mg,Mf,Wg,Wf]=margin(Mag,Fas,w)
[real,imag,w]=nyquist(sys,w)
BODE(SYS) draws the Bode plot of the LTI model SYS (created with
either TF, ZPK, SS, or FRD). The frequency range and number of
points are chosen automatically.
For discrete-time models with sample time Ts, BODE uses the
transformation Z = exp(j*W*Ts) to map the unit circle to the
real frequency axis. The frequency response is only plotted
for frequencies smaller than the Nyquist frequency pi/Ts, and
the default value 1 (second) is assumed when Ts is unspecified.
Overloaded methods
help lti/bode.m
Example:
num2str(randn(2,2),3) produces the string matrix
'-0.433 0.125'
' -1.67 0.288'