Computing the Hilbert transform via Fourier transform

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
Messages
1,816
Reaction score
33
I know the result: [tex]\widehat{H(f)}=i\textrm{sgn}\hspace{1mm}(k)\hat{f}[/tex]

I thought I could use fft, and ifft to compute the transform easily, is there a MATLAB command for sgn?

Mat
 
on Phys.org
Yes, sign!

sign
Signum function

Syntax
Y = sign(X)

Description
Y = sign(X) returns an array Y the same size as X, where each element of Y is:

1 if the corresponding element of X is greater than zero

0 if the corresponding element of X equals zero

-1 if the corresponding element of X is less than zero

For nonzero complex X, sign(X) = X./abs(X).