How can I add curves to the Bode plot?

1 vue (au cours des 30 derniers jours)
Zifeng Qiu
Zifeng Qiu le 29 Sep 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);

Réponses (1)

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

Catégories

En savoir plus sur Plot Customization dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by