Info
此问题已关闭。 请重新打开它进行编辑或回答。
I have a question about FFT
1 次查看(过去 30 天)
显示 更早的评论
I have a vector of discrete data( they show the positions in single time), I am using fft to see how this data behaves in terms of periodicity? all example I found in matlab talk about the sample frequency and sample length , I know that the sample length can be the length of my vector ,but how the sample frequency plays role here ? will you please give me some helps by answering my question?
0 个评论
回答(2 个)
Adam
2014-11-6
The sample frequency will be determined by how long your signal is in e.g. seconds. This then gives a hard link between frequency in Hz and your sample length.
If you don't know what the length of your signal is in time then you can still just work with normalised frequency, but it depends what you want to interpret from it. If you want to look at, for example, how much power is in your signal between 20Hz and 30Hz then you will need the sample frequency to map from normalised frequencies onto the Hz range as
frequencyHz = normFrequency * sampleRate;
Where normFrequency runs from 0 to 1, 1 being your sample frequency, 0.5 being the Nyquist frequency. Or -0.5 to 0.5 if you are going to mess with negative frequencies too I guess.
2 个评论
Adam
2014-11-6
It would probably help if you post the formulae you are trying to use here. I always get confused by where I need to plug in some of the parameters to get a properly scaled FFT, but I have embedded my usages in classes I have written that now does all that for me. Right now I don't have time to plough through all the Matlab help myself to refresh my memory on what their examples do with the sample frequency.
If you have no known sample frequency then you can probably just set it at 1
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!