Why result of FFT command is not good?

3 views (last 30 days)
Hello every body. I used fft command for recognize bandwidth of a set of datas... First data pack has nearly 25000 time domain data with 25 seconds sampling time and next data pack has 12000 time domain data with 1 second sampling time, then result of fft and its absolute value are same, we know from nyquist sampling theory that by 25 seconds sampling time we cant have freqeuncy above o.o2 Hz and by 1 second sampling time we cant have freqeuncy above 0.5 Hz, but result are same similar attached picture... Red graph is 1 seconds sampling time and blue graph is 25 seconds sampling time, please care that horizontally must be multiply "0.01" and its dimension is rad/s and vertically is amplitude of signal... Please help me. Thanks alot.

Accepted Answer

Matt J
Matt J on 31 Mar 2015
Edited: Matt J on 31 Mar 2015
Remember that the duration of the data pack will affect frequency domain sampling according to
deltaFrequency=1/time_duration
So, your first data pack is getting its spectrum sampled at increments of .04 Hz while your second pack is being sampled at 1 Hz increments. Also keep in mind that this is not a continuous Fourier transform. To scale the FFT consistently with the continuous Fourier transform, you must multiply by the time sampling interval, which is also different for each of your two data packs.
  6 Comments
mostafa
mostafa on 4 Apr 2015
Thanks alot for your good answer Matt J. My goal is select best sampling time for my plant, i have an software that can sampling from plant eith various sampling time, i dont know which one is the best sampling time,and if both of them isnt good, which one what sampling time is better? first i try to make data pack with 25 second sampling time and another 1 second sampling time, i tried to plot fourier transform with FFT and DFT, with this two data pack, i dont know the frequency of inputs and also frequency of output and i dont know what is the transfer function of plant, just i have time domain data pack one with 25 second sampling time and another with 1 second, i am trying to understand best sampling time, i dont understand fully how number off FFT points can help me for this application? Please help me if it is possible.
mostafa
mostafa on 9 Apr 2015
Mr Matt J, Can you help me again?

Sign in to comment.

More Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!