Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
I have a question about FFT
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (2)
Adam
le 6 Nov 2014
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 commentaires
Adam
le 6 Nov 2014
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
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!