Effacer les filtres
Effacer les filtres

How to plot a bode graph

4 vues (au cours des 30 derniers jours)
Catherine  Butler
Catherine Butler le 22 Fév 2017
Commenté : Star Strider le 30 Avr 2017
I need to plot a bode graph. I have values for the frequency, magnitude and phase but how do I then put them on a bode diagram?

Réponses (3)

Rahul Kalampattel
Rahul Kalampattel le 22 Fév 2017
Have a look at the documentation for semilogx and see if it helps...

Star Strider
Star Strider le 22 Fév 2017
Use the subplot function:
figure(1)
subplot(2,1,1)
plot(frequency, magnitude)
grid
xlabel('Frequency (Hz)')
ylabel('Magnitude')
subplot(2,1,2)
plot(frequency, phase)
grid
xlabel('Frequency (Hz)')
ylabel('Phase')

Caitlin Jarvis
Caitlin Jarvis le 30 Avr 2017
if you have the transfer function than you can enter it in and plot directly from that.
for example for (2s^2+4s+1)/(s+1) where s=jw, you enter the transfer function like this:
G=tf([2,4,1],[1,1])
and then plot using: bode(G)
  1 commentaire
Star Strider
Star Strider le 30 Avr 2017
Quoting the original post:
‘I have values for the frequency, magnitude and phase but how do I then put them on a bode diagram?’

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by