Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Computing the Hilbert transform via Fourier transform

  1. Jan 21, 2013 #1

    hunt_mat

    User Avatar
    Homework Helper

    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
     
  2. jcsd
  3. Jan 21, 2013 #2
    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).
     
  4. Jan 21, 2013 #3

    hunt_mat

    User Avatar
    Homework Helper

    Is it okay for computing the Hilbert transform?
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook




Loading...
Similar Threads for Computing Hilbert transform
Maple Computing Numerical Integrals with Maple
MATLAB Plotting Coordinate Transformations in Matlab
Mathematica Mathematica Computation Time