Re: Matlab FFT Calibration Routines



On May 5, 4:29 pm, "John Costello" <JohnCoste...@xxxxxxxxxxxxx> wrote:
Does Matlab have a canned set of data for FFT analysis?

What I am trying to find is a Matlab program that takes a
known set of data for a signal, computes the FFT and
extracts the spectral content and RMS equivalents of the
discrete sinusoids used to assimilate the signal...

For example, if we set up a known signal comprised of

f(t) = 5 + 2sin(2*pi*100*t) + 3sin(2*pi*1000*t)

what do we get from the Matlab FFT analysis?

What are you looking for?

Results depend on N and dt. The FFT imposed
period is

T = N*dt

Therefore, you should get the best results when
100*N*dt = integer.

t = dt*(0:N-1)';
df = 1/T
f = df*(0:N-1)';

Hope this helps.

Greg
.