LBP&Controls #1

Open
L. Dijk wants to merge 7 commits from LBP&Controls into master
4 changed files with 6 additions and 3 deletions
Showing only changes of commit ea3a7f95e8 - Show all commits

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 />