finding sample rate

Hi, I have to take FFT of a signal, which will be in anywhere between

200-3000Hz.If I have to take FFT should I sample the signal only in powers of 2(2 power 20 samples or 2 power 21 samples, ofcourse atleast >6000 samples)? Thanks in advance.
Reply to
Wills
Loading thread data ...

|-------------------------------------------------------------------| |"[..]If I have to take FFT should I sample the signal only in | |powers of 2[..]?" | |-------------------------------------------------------------------|

No, unless you are using something (e.g. a library) which needs you to.

|-------------------------------------------------------------------| |"(2 power 20 samples or 2 power 21 samples, ofcourse | |atleast >6000 samples)?" | |-------------------------------------------------------------------|

2 to the power of 20 is >6000. 2 to the power of 13 is 8192 which is the smallest number >6000 which can be obtained by raising 2 to the power of a natural number.

Good luck, Colin Paul Gloster

Reply to
Colin Paul Gloster

Thanks. Should the number of samples be 2 power x?

Thanks in advance.

Reply to
Wills

For FFT you should have 2^N number of samples, but you don't have to have 2^M value of sampling frequency. Choose it basing on the rejection factor of your anti-aliasing filter. Good luck, Alex.

Reply to
baranovus

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.