Signal Processing; Is there a way to concatenate codes for find peaks?

1 回表示 (過去 30 日間)
JET
JET 2021 年 2 月 22 日
回答済み: Priyank Pandey 2022 年 4 月 1 日
Im having some difficulty in understanding the syntax of codes I need for signal processing, also fairly new to matlab so any extra details or explanations will be greatly appreciated. If I want them to be above a threshold and also spaced at a certain distance without two lines of code? I am trying to build two matrices; one for peaks that cross the threshold and also for those that do not.
%contstruct matrices%
[PKS,LOCS]=findpeaks(wave,'MinPeakHeight',threshold;'MinPeakDistance';0.002)
[PKS_2,LOCS_2]=findpeaks(wave)
  1 件のコメント
Mathieu NOE
Mathieu NOE 2021 年 2 月 23 日
hello
I am not sure to understand if your are looking for peaks or trying to find out crossing point between a signal and a threshold value ? (see example attached)

サインインしてコメントする。

回答 (1 件)

Priyank Pandey
Priyank Pandey 2022 年 4 月 1 日
Hi,
You can reffer to following links to have more understanding on find peaks.

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by