forked from marlow17/PredictingGroundReactionForces
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeFigureS123.m
More file actions
50 lines (38 loc) · 1.62 KB
/
Copy pathmakeFigureS123.m
File metadata and controls
50 lines (38 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
% Function to generate Figure 2 accompanying the paper
%
% "Predicting vertical ground reaction forces from 3D accelerometery using
% reservoir computers leads to accurate gait event detection", Margit M
% Bach, Nadia Dominici, and Andreas Daffertshofer. Vrije Universiteit
% Amsterdam
%
%
% This code uses Bastion Bechtold's Violin Plots for Matlab, Github Project
% https://github.com/bastibe/Violinplot-Matlab, DOI: 10.5281/zenodo.4559847
%
% ________________________________________________________________________
%
% This file is released under the terms of the GNU General Public License,
% version 3. See http://www.gnu.org/licenses/gpl.html
%
% ________________________________________________________________________
%% set the Matlab path
addpath('misc','graphics', 'external/Violinplot-Matlab');
testDataType='strides';
load(fullfile('results',sprintf('statistics_%s.mat',testDataType)));
fname=fullfile('results',sprintf('statistics_%s.txt',testDataType));
if exist(fname,'file'), delete(fname); end
diary(fname);
fprintf(['\n<strong>Training strides and val./testing %s ' ...
'gait data with (%g,%g,%g)%% split ...</strong>\n\n'], ...
testDataType,split*100);
reportStats(stat,condition,fs);
fprintf('\n');
% diary off;
fig=Figure2S(result(1,:),[100,5;70,7],{8:18,50:60},condition(1),fs,{'walking','running'});
fig=[fig,Figure2S(result(2,:),[80,1],1:10,condition(2),fs)];
fig=[fig,Figure2S(result(3,:),[80,3],1:10,condition(3),fs)];
for i=1:numel(fig)
set(fig(i),'Name',[get(fig(i),'Name') '_' testDataType]);
end
storeFigures(fig,'figures');
%% _ EOF__________________________________________________________________