How to get occurrence frequency of the signal?
Afficher commentaires plus anciens
Hi Everybody,
I faced difficulty regarding to get the occurrence frequency of my signal. The data are in .xls format and the column which I want to get the frequency is called "s" and I want only get frequency for those greater than 0.2. Time is define in another column. Could you please help me?
Any help would be highly appreciated.
2 commentaires
Wayne King
le 22 Mar 2013
Can you please clarify, you have time-domain data in one column and the corresponding times in another column (in your spreadsheet).
When you say you only want the frequency for those greater than 0.2, what is the 0.2 (some frequency value), or are you referring to the amplitude of the signal (the value in time)?
Ara
le 22 Mar 2013
Réponses (1)
vipul utsav
le 22 Mar 2013
0 votes
freq=xlsread(filename.xls,A1:A11)
aa=find(freq>0.2)
answer=freq(aa)
in above code column A1:A10 contain freq.you can take any
7 commentaires
Ara
le 22 Mar 2013
vipul utsav
le 22 Mar 2013
what is problem in above code?
Ara
le 22 Mar 2013
vipul utsav
le 22 Mar 2013
In which column of xls file you have specified frequency?
in my code if you have written frequency in column A1 :A11 then you will get frequency above '0.2' in variable 'answer'
Ara
le 22 Mar 2013
vipul utsav
le 23 Mar 2013
you have need clarification.
whether s4 is a single value... what is s4?....then which data are in your xls file if you read xls file then some data should in xls file.
Ara
le 23 Mar 2013
Catégories
En savoir plus sur Sources dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!