How to automatically chop up signal??

조회 수: 2 (최근 30일)
Joe Bennet
Joe Bennet 2021년 3월 14일
답변: Star Strider 2021년 3월 14일
In the attacthed figure, there is a graph displaying the response of human skin that has been palpated by 5 sinusoidal waves of increasing frequency. I would like to write a peice of code that automatically identifies the points at which each one of these five signals starts and ends, but I really dont know where to even start. Any help would be greatly appreciated!
Thanks

채택된 답변

Star Strider
Star Strider 2021년 3월 14일
It depends on where you define ‘start’ and ‘end’.
If you want to consider the middle of the signal rather tha either peak, first use the bandpass function to elimiinate the baseline drift and high-frequency noise. (Use the fft function or the Signal Analyzer App to determine the frequency content in order to design the filter correctly.) Then, to determine the approximate zero-crossing indices, use:
zxidx = find(diff(sign(filtered_signal)));
You can then use a for loop and interp1 to determine the exact aero-crossing times if that is important.
Iff you define them by the peaks or valleys, use findpeaks,, or islocalmax or islocalmin to determine those indices.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by