Done; analysis patients. Seperate analysis for each minute and overall. Changed WindowLength for inputdata (~ApplyRemoveSteps). Controls still in progress with new files from Claudine.

This commit is contained in:
L. Dijk 2021-02-17 16:43:14 +01:00
parent 115e08f04d
commit ea3a7f95e8
4 changed files with 6 additions and 3 deletions

View File

@ -25,9 +25,9 @@ minPeakHeight2 = 1.2*std(magNoGfilt); % based
[pks, locs] = findpeaks(magNoGfilt, 'MINPEAKHEIGHT', minPeakHeight2); % for step detection
numStepsOption2_filt = numel(pks); % counts number of steps;
diffLocs = diff(locs); % calculates difference in step location
avg_diffLocs = mean(diffLocs); % average distance between steps
std_diffLocs = std(diffLocs); % standard deviation of distance between steps
diffLocs = diff(locs); % calculates difference in step location
avg_diffLocs = mean(diffLocs); % average distance between steps
std_diffLocs = std(diffLocs); % standard deviation of distance between steps
figure;
findpeaks(diffLocs, 'MINPEAKHEIGHT', avg_diffLocs, 'MINPEAKDISTANCE',9); % these values have been chosen based on visual inspection of the signal

View File

@ -101,6 +101,7 @@ if ApplyRemoveSteps
clear LocsSteps;
% Change window length if ApplyRemoveSteps (16-2-2021 LD)
WindowLen = size(dataAccCut,1);
else;

Binary file not shown.

View File

@ -0,0 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<Info />