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:
parent
115e08f04d
commit
ea3a7f95e8
@ -25,9 +25,9 @@ minPeakHeight2 = 1.2*std(magNoGfilt); % based
|
|||||||
[pks, locs] = findpeaks(magNoGfilt, 'MINPEAKHEIGHT', minPeakHeight2); % for step detection
|
[pks, locs] = findpeaks(magNoGfilt, 'MINPEAKHEIGHT', minPeakHeight2); % for step detection
|
||||||
numStepsOption2_filt = numel(pks); % counts number of steps;
|
numStepsOption2_filt = numel(pks); % counts number of steps;
|
||||||
|
|
||||||
diffLocs = diff(locs); % calculates difference in step location
|
diffLocs = diff(locs); % calculates difference in step location
|
||||||
avg_diffLocs = mean(diffLocs); % average distance between steps
|
avg_diffLocs = mean(diffLocs); % average distance between steps
|
||||||
std_diffLocs = std(diffLocs); % standard deviation of distance between steps
|
std_diffLocs = std(diffLocs); % standard deviation of distance between steps
|
||||||
|
|
||||||
figure;
|
figure;
|
||||||
findpeaks(diffLocs, 'MINPEAKHEIGHT', avg_diffLocs, 'MINPEAKDISTANCE',9); % these values have been chosen based on visual inspection of the signal
|
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;
|
clear LocsSteps;
|
||||||
|
|
||||||
% Change window length if ApplyRemoveSteps (16-2-2021 LD)
|
% Change window length if ApplyRemoveSteps (16-2-2021 LD)
|
||||||
|
|
||||||
WindowLen = size(dataAccCut,1);
|
WindowLen = size(dataAccCut,1);
|
||||||
|
|
||||||
else;
|
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