How would I plot the frequency response of the Hilbert Transform?
Show older comments
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)
Answers (1)
Rahul Goel
on 30 Oct 2015
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.
Categories
Find more on Transforms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!