bode() magnitude
Mostrar comentarios más antiguos
Hi, I Have seen the code [ mag,phase] = bode(sy s) but when i try to see the values of mag, or phase, it returns something like mag(:,:,1). What is the significance of the stuff in the brackets? How can i just get the magnitude values with respect to frequency so I can plot a 2d plot of the magnitude and frequency?
thanks
Respuesta aceptada
Más respuestas (4)
aaa
el 2 de Mayo de 2012
Arkadiy Turevskiy
el 2 de Mayo de 2012
semilogx(wout,20*log10(squeeze(mag)))
gives you the same plot for magnitude as bode.
If it does not look the same, it is because the axes limits do not line up. You can customize that and other plot parameters to your liking as described here.
aaa
el 2 de Mayo de 2012
0 votos
aaa
el 2 de Mayo de 2012
1 comentario
Arkadiy Turevskiy
el 3 de Mayo de 2012
win=logspace(wout(1),wout(45),100);
% replace 100 with desired number of points
[mag,phase] = bode(sys,win);
Categorías
Más información sobre Plot Customization en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!