How to plot a bode graph

조회 수: 16 (최근 30일)
Catherine  Butler
Catherine Butler 2017년 2월 22일
댓글: Star Strider 2017년 4월 30일
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?

답변 (3개)

Rahul Kalampattel
Rahul Kalampattel 2017년 2월 22일
Have a look at the documentation for semilogx and see if it helps...

Star Strider
Star Strider 2017년 2월 22일
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 2017년 4월 30일
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
Star Strider
Star Strider 2017년 4월 30일
Quoting the original post:
‘I have values for the frequency, magnitude and phase but how do I then put them on a bode diagram?’

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Frequency-Domain Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by