How can I add curves to the Bode plot?

5 visualizaciones (últimos 30 días)
Zifeng Qiu
Zifeng Qiu el 29 de Sept. de 2020
Respondida: Walter Roberson el 29 de Sept. de 2020
I am trying to make a comparison between my experimental resutl and theoretical result, how can I move that blue curve to the magnitude plot? Below are the code that I used:
s =tf('s');
R = 11.17*10^3;
C = 0.066*10^-6;
B = 1/(1+s*R*C);
lf = [73.79,368.95,737.9,1475.8,2213.7,2951.6,5903.2];
bode(B,lf);
grid;
hold on
mr = [-0.219907686,-0.406756628,-1.061134586,-3.0980392,-5.31200515,-6.792178032,-11.95477235];
pd = [-2.58876,-13.3245,-25.2108,-43.3152,-54.3132,-61.9272,-74.448];
plot(lf,mr);
hold on
plot(lf,pd);

Respuestas (1)

Walter Roberson
Walter Roberson el 29 de Sept. de 2020
Use bodeplot() instead of bode() . bode() calls bodeplot() but does not return the handles that you need to get to the axes objects.

Categorías

Más información sobre Plot Customization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by