フィルターのクリア

How to automatically chop up signal??

1 回表示 (過去 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 Center および File ExchangeMultirate Signal Processing についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by