diff --git a/DetermineLocationTurnsFunc.m b/DetermineLocationTurnsFunc.m index 0f8c4c3..37fc26d 100644 --- a/DetermineLocationTurnsFunc.m +++ b/DetermineLocationTurnsFunc.m @@ -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 diff --git a/GaitOutcomesTrunkAccFuncIH.m b/GaitOutcomesTrunkAccFuncIH.m index f8e0279..6589fbc 100644 --- a/GaitOutcomesTrunkAccFuncIH.m +++ b/GaitOutcomesTrunkAccFuncIH.m @@ -101,6 +101,7 @@ if ApplyRemoveSteps clear LocsSteps; % Change window length if ApplyRemoveSteps (16-2-2021 LD) + WindowLen = size(dataAccCut,1); else; diff --git a/Main_GaitVariabilityAnalysis_LD.mlx b/Main_GaitVariabilityAnalysis_LD.mlx index ad5a919..6686c93 100644 Binary files a/Main_GaitVariabilityAnalysis_LD.mlx and b/Main_GaitVariabilityAnalysis_LD.mlx differ diff --git a/resources/project/uuid-397832ba-e50d-439c-bd33-8c866c35eb59.xml b/resources/project/uuid-397832ba-e50d-439c-bd33-8c866c35eb59.xml new file mode 100644 index 0000000..1c0844e --- /dev/null +++ b/resources/project/uuid-397832ba-e50d-439c-bd33-8c866c35eb59.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file