How would I plot the frequency response of the Hilbert Transform?
4 次查看(过去 30 天)
显示 更早的评论
I have tried using the hilbert command with no luck. I eventually went to just typing in the actual behavior of the frequency response and now I can get plots but they are far from correct I believe. I am not very proficient in MATLAB yet so any help would be appreciated. Thank you.
w1=[0:pi]; w2=[-pi:0]; N=[10 20 40 80]; H1=-j*exp(-j.*N.*w1) H2=j*exp(-j.*N.*w2)
H1i=imag(H1) H1r=real(H1) H2i=imag(H2) H2r=real(H2)
plot(H1i,H1r) hold on plot(H2i,H2r)
0 个评论
回答(1 个)
Rahul Goel
2015-10-30
Hi Myke,
Try the following, it worked for me:
t = 0:1/1024:pi;
x = exp(-j*60*t);
y = hilbert(x);
plot(t,imag(y))
hold on;
plot(t,real(y))
It generated a plot which looked like following:
Hope this helps.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!