Just a minor change as the original code for calculating the number of GSR peaks per second was incorrect with nbPeaks = nbPeaks/(length(GSRsignal)/samprate); since length(GSRsignal) always equals 1.
It should be nbPeaks = nbPeaks/(length(GSRsignal.raw)/samprate); to get the correct number.
Just a minor change as the original code for calculating the number of GSR peaks per second was incorrect with
nbPeaks = nbPeaks/(length(GSRsignal)/samprate);
sincelength(GSRsignal)
always equals 1.It should be
nbPeaks = nbPeaks/(length(GSRsignal.raw)/samprate);
to get the correct number.