How would I plot the frequency response of the Hilbert Transform?

2 views (last 30 days)
Myke on 28 Oct 2015
Answered: Rahul Goel on 30 Oct 2015
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
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);
hold on;
It generated a plot which looked like following:
Hope this helps.

Community Treasure Hunt

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

Start Hunting!

Translated by