Filter löschen
Filter löschen

use Findpeak for multiple ECG signals

1 Ansicht (letzte 30 Tage)
sania urooj
sania urooj am 8 Mär. 2021
Kommentiert: Mario Malic am 8 Mär. 2021
hey ! I am trying to use "findpeaks' for multiple ecg signals using loop.
but it does not work. I know the problem , in my file there are 30 ecg signals and every signal may have different peaks , Therefore, it is not generating a matrix having equal columns.
ecg_m has 30x 10149 rows n columns. My code is given as:
for i=1:30
[pks(i,:),locs(i,:)] = findpeaks(ecg_m(i,:));
end
Please tell me any other way to do this task.
  1 Kommentar
Mario Malic
Mario Malic am 8 Mär. 2021
Use structure, or cell array to save the data in.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by