Matlab FFT Units: Solving the Mystery

In summary, Jaynte said that in order to measure voltage or power in terms of Hz, you need to take the absolute value of the results of a Fourier transform, and divide by frequency. He also mentioned that MATLAB will return results in frequency domain, while other programs might return results in radial velocity.
  • #1
Mindscrape
1,861
1
I was browsing another topic, and I suddenly remembered that I've never quite figured out what units matlab's fft returns. I've used the fft before and found where I had signal noise by taking the power density of the Fourier coefficients, which is all I really wanted to use the fft for in the first place. Still, I'm curious what would need to be done to get a useful measurement like volts/sqrt(Hz), or volts^2/Hz. The units after the FFT should still be in volts, so would all I need to do is divide by frequency, and take the complex conjugate or complex conjugate root? Anyone done this before, if so mind posting your code for me to look at? My initial search on the internet, even through the mathworks site, still reveals nothing very concrete.
 
Physics news on Phys.org
  • #2
The units of FFT will be in volts only as you mentioned but i don't know the procedure to get it in terms of other units.
 
  • #3
The answer from MATLAB will be complex, you'll get the transfer function H(w).

To get amplitude (volt) you need to take the absolute value of the result.

abs(fft(x));

Acctually you will get (volt/radian velocity)
 
  • #4
Right, but I'm looking for a concrete example of taking the FFT coefficients from matlab, and producing Volts/sqrt(Hz). I think my original inclination of taking zz*, dividing by frequency, and sqrt must be very close.
 
  • #5
Sorry, it seems that MATLAB will return in frequency domain and not radial velocity.

y=fft(x);
z=abs(y); //Now you have V/Hz
z=z*sqrt(freq) // Now you have V/sqrt(Hz) since (freq/sqrt(freq) = sqrt(freq))
 
  • #6
As you noted, the units for the FFT is the same as in the time domain, so if it's volts, you need to square the modulus to get a quantity proportional to the power. If I understand correctly what you're asking for, you then want to divide by [itex]\Delta\omega[/itex], the spacing of bins in the frequency domain. But [itex]\Delta\omega[/itex] is a constant, so simply squaring the FFT gives you what you want, up to an overall constant.
 
  • #7
Jaynte, you may be right, I'll give it a try sometime. I just have to get my hands on a spectrum analyzer, save the data, and compare. Or take somebody's time data that they have converted into V/sqrt(Hz) by some method, and see what MATLAB gives, or probably actually what octave gives.
 

Related to Matlab FFT Units: Solving the Mystery

1. What is FFT?

FFT stands for Fast Fourier Transform, which is a mathematical algorithm used for analyzing and processing signals in various fields such as engineering, physics, and mathematics.

2. What are the units used in Matlab FFT?

The units used in Matlab FFT are frequency (Hz) for the x-axis and amplitude (arbitrary units) for the y-axis.

3. How do I interpret the results of a Matlab FFT?

The results of a Matlab FFT represent the frequency content of a signal. The x-axis shows the range of frequencies that were analyzed, and the y-axis shows the strength or amplitude of each frequency component.

4. Can I change the units in a Matlab FFT?

Yes, you can change the units in a Matlab FFT by using the 'fftshift' function to shift the zero-frequency component to the center of the spectrum and multiplying the x-axis values by a conversion factor.

5. What are the applications of Matlab FFT?

Matlab FFT has a wide range of applications, including signal processing, image processing, data compression, and spectral analysis. It is also used in fields such as telecommunications, audio and video processing, and biomedical engineering.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
169
  • Differential Equations
Replies
11
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
5K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
Replies
3
Views
2K
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
1K
Back
Top