How to get occurrence frequency of the signal?

조회 수: 2 (최근 30일)
Ara
Ara 2013년 3월 22일
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
Wayne King
Wayne King 2013년 3월 22일
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
Ara 2013년 3월 22일
s4 data are s4 index with sampling rate 50 Hz but those are greater than 0.2 consider as event which I want to analyse it. So I need to know the frequency of s4 index. Please let me know if it's not clear.

댓글을 달려면 로그인하십시오.

답변 (1개)

vipul utsav
vipul utsav 2013년 3월 22일
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
vipul utsav
vipul utsav 2013년 3월 23일
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
Ara 2013년 3월 23일
s4 is a integer number with sampling rate 50Hz that compute using two column of my data and in the .xls file I have time. should I use this relation?(f=1/T). Frequency is the number of repeating events vs time, right? basd on this how can I compute it?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by