Multiple Bode plots on same graph, how to plot phase ?
29 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
My question has already been posted, but I'm having some trouble...
I'm trying to plot 2 bode plots on the same figure. One of the plots has a transfer function, the other not. So I use this command:
semilogx(x,y), hold on
bode(sys, 'r')
On this way I get 2 curves on the amplitude-plot, to this point all right. I'm looking to also add a second curve on the phase-plot. I tried using subplot(2,1,2), but it doesn't work...
Does anyone can tell me how to add this second phase-cure?
Thanks, Ata
2 commentaires
José-Luis
le 20 Mai 2013
Could you post an example of what you'd like and what you actually get? It doesn't work is not a very helpful description. Have you tried
hold on
Réponse acceptée
David Sanchez
le 20 Mai 2013
[mag_A phase_A] = bode(sys_A,W);
[mag_B phase_B] = bode(sys_B,W);
subplot(2,1,1)
semilogx(W,mag_A);hold on
semilogx(W,mag_B);hold off
subplot(2,1,2)
semilogx(W,phase_A);hold on
semilogx(W,phase_B);hold off
3 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Response Computation and Visualization 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!