As I know, the Hilbert transform $$ H(x(t))=\frac{1}{\pi t}\star x(t) $$ in time domain is equal to $$ -j \operatorname{sgn}(f) \cdot X(f) $$ in frequency domain. so I tried simple example using MATLAB as below,
x=[1,2,7,3];
y1=imag(hilbert(x));
f=[0,1,2,-1];
y2=ifft(-1i*sign(f).*fft(x));
but the result of y1
and y2
are different as below
y1 =
0.5000 -3.0000 -0.5000 3.0000
y2 =
0.5000 - 0.7500i -3.0000 + 0.7500i -0.5000 - 0.7500i 3.0000 + 0.7500i
just only the real part of y2
is same with y1
.
Any one who knows why please explain.