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!