Questions about the fft function in Matlab



Hi all

I have made a Fourier transform, based on the example in the help-function in Matlab, but I have a few questions about the calculation in the fft-function.

From the example in Matlab Help I got this:


L = numbers of samples in the sampled signal
Fs = sampling frequency

(1) NFFT = 2^nextpow2(L);
(2) Y = fft(y,NFFT)/L;
(3) f = Fs/2*linspace(0,1,NFFT/2+1);


(4) plot(f,2*abs(Y(1:NFFT/2+1)))
(5) title('Single-Sided Amplitude Spectrum of y(t)')
(6) xlabel('Frequency (Hz)')
(7) ylabel('|Y(f)|')


Why is the fft divided by L? (2)
When plotting, why is the absolute value of the signal multiplied by 2? (4)

About units:
If I have sampled my signal in Volts, what unit can I put on the y-axis of the magnitude of the Fouriertransform?

I hope somebody would like to help me.

Best regards
Camilla
.



Relevant Pages

  • Re: Fourier Transform Calculation in Matlab
    ... calculation for Fourier Transform of this signal in Matlab? ... your desired resolution), create the vector of "d", and perform fft on ...
    (comp.soft-sys.matlab)
  • Re: fourier transform of 1/|x|
    ... how can we make this into a calculation ... The Fourier transform induces a quotient map from S'/D ... this is a topological-vector-space isomorphism. ... "Understanding Godel isn't about following his formal proof. ...
    (sci.math)
  • Re: DFT of an irregular time-spacing signal
    ... posted a MATLAB version of Lomb-Scargle on MATLAB Central; ... C library for computing the Nonequispaced Discrete Fourier Transform ... Other common names for NFFT are non-uniform fast Fourier transform ... % Computes the nonequispaced dft and its adjoint. ...
    (comp.soft-sys.matlab)
  • Re: DFT of an irregular time-spacing signal
    ... posted a MATLAB version of Lomb-Scargle on MATLAB Central; ... C library for computing the Nonequispaced Discrete Fourier Transform ... Other common names for NFFT are non-uniform fast Fourier transform ... % Computes the nonequispaced dft and its adjoint. ...
    (comp.soft-sys.matlab)
  • Re: FFT with matlab
    ... I have a problem with FFT and iFFT with Matlab. ... The fourier transform should be sqrt*exp. ... you don't need to use fftshift with the ifft to reorganise ...
    (comp.soft-sys.matlab)

Loading