How would I plot the frequency response of the Hilbert Transform?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Rahul Goel
el 30 de Oct. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Hilbert and Walsh-Hadamard Transforms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!