LBP&Controls #1
@ -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
|
||||
|
@ -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.
@ -0,0 +1,2 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<Info />
|
Loading…
Reference in New Issue
Block a user