From b3a466df31e4c2b34e09882b815584628d835251 Mon Sep 17 00:00:00 2001 From: Hugo Haffad Date: Sun, 15 Feb 2026 11:59:41 +0100 Subject: [PATCH] Update formatsignalHDEMG Added fsamp and emgtype parameters to formatsignalHDEMG function. Added the announced but not yet applied bandpass filter. --- lib/formatsignalHDEMG.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/formatsignalHDEMG.m b/lib/formatsignalHDEMG.m index dc5f26f..e75652b 100644 --- a/lib/formatsignalHDEMG.m +++ b/lib/formatsignalHDEMG.m @@ -5,13 +5,14 @@ % Input: % signal: row-wise signal % gridname: name of the OTB grid of electrodes +% fsamp: sampling frequency of the signal % check EMG: 1 = Visual checking of EMG channels % Output: % coordinates: x and y coordinates of each electrode % IED: inter electrode distance % discardChannelsVec: vector of discarded channels after visual checking (1 = discarded channel); - +% emgtype: 1 = surface, 2 = intra %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function [coordinates, IED, discardChannelsVec, emgtype] = formatsignalHDEMG(signal, gridname, fsamp, checkEMG) @@ -209,6 +210,7 @@ % Notch filter and bandpassfilter before visualization signal = notchsignals(signal,fsamp); + signal = bandpassingals(signal, fsamp, emgtype(i)); % Visual checking of EMG signals by column if checkEMG == 1