Finding time points/intervals when frequency of the signal is about exact value
조회 수: 4 (최근 30일)
이전 댓글 표시
I would like to find at what time frequency of my signal is about 2 Hz. I know how to do fft of my signal but it does not let me find corresponding point in time. Do you have any idea how to do it?
댓글 수: 0
채택된 답변
Walter Roberson
2015년 6월 8일
and look at Output Arguments.
Search the normalized frequencies output, w, for the one closest to your target frequency. That gives you a row offset into s. Search that row of s for the maximum absolute value. Index the column number into the time output, t, to get the time of the midpoint of that window.
At least that's what I figure from the documentation.
댓글 수: 7
Walter Roberson
2015년 6월 12일
One point in time is all you asked for. It finds the time at which the amplitude is greatest for that frequency.
Walter Roberson
2015년 6월 12일
Are you looking for all the time points at which the largest peak is within a frequency range? How about situations where there is a "big" peak near the target frequency but the largest amplitude happens to be elsewhere, such as might occur if the peak is part-way between two bins so the energy is distributed to both of them.
추가 답변 (1개)
Image Analyst
2015년 6월 8일

댓글 수: 3
Image Analyst
2015년 6월 9일
Since you haven't uploaded "el", we can't really help you with your specific situation.
참고 항목
카테고리
Help Center 및 File Exchange에서 Time-Frequency Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!