I am trying to convert random wave into number of uniform sine waves (frequency spectrum) using FFT in MATALB. My concern is to optimize the selection of the best 3-5 sine waves and create the initial wave (90-99%) back. 1) Whether I need to do zero padding (time domain data should be in 2 power numbers)? Will it affect the resultant sine waves? 2) whether i should include Nyquist theorem in determining bins. whats the purpose of setting frequency bins. Why not the frequency domain length is as same as the  time domain length? Kindly clarify these issues regarding to the objective of my work.

Without these two also, I am getting fft of the original wave and if i include all the sine waves (frequency spectrum) and do ifft, i can get back the original wave. So what is the influence of these two 1) converting data in form of 2 power 2) setting the number of bins in frequency domain?

Whether I really need to those steps? How will it improvize my work's output?

Similar questions and discussions