-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBATCH_ANALYSE_DUAL.m
72 lines (56 loc) · 2.19 KB
/
BATCH_ANALYSE_DUAL.m
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
perfDataBig = [];
perfDataBigExpl = [];
perfDataBigXY = {};
perfDataBigY = [];
count = 0;
for intensity = 0.2:0.025:0.6
count = count + 1;
perfDataBigXY{count} = [];
runString = ['_DUAL_' int2str(intensity*40)];
eval(['fileStr = ''perfdata' runString ''';']);
eval(['load ./dual/' fileStr ';']);
eval(['goodOrNot = size(' fileStr ',1);']);
if goodOrNot > 0
eval(['perfDataBig = [perfDataBig; [intensity mean(' fileStr '(:,1))]];']);
eval(['perfDataBigExpl = [perfDataBigExpl; [intensity (transpose(' fileStr '(:,1)))]];']);
eval(['perfDataBigXY{count} = [perfDataBigXY{count}; [' fileStr '(:,2) ' fileStr '(:,3)]];']);
eval(['perfDataBigY = [perfDataBigY; [intensity transpose(' fileStr '(:,3))]];']);
end
end
plot(abs(reshape(perfDataBigY(10,2:end),10,1)),abs(reshape(perfDataBigExpl(10,2:end),10,1)),'o')
fignum = figure('Units', 'pixels', 'Position', [100 20 600 500]);
hold off;
% hPlot = plot(perfDataBig(1:end,1),perfDataBig(1:end,2));
hErr = errorbar(perfDataBig(1:end,1),perfDataBig(1:end,2), perfDataBigSD(1:end,2));
figure(fignum)
hXLabel = xlabel('Target distance (deg)' );
hYLabel = ylabel('Reaction time (s)' );
set(gca , ...
'FontName' , 'Helvetica' );
set([hXLabel, hYLabel], ...
'FontName' , 'Helvetica');
set([hXLabel, hYLabel] , ...
'FontSize' , 30 );
set(gca, ...
'FontSize' , 36 , ...
'Box' , 'off' , ...
'TickDir' , 'out' , ...
'TickLength' , [.02 .02] , ...
'XMinorTick' , 'off' , ...
'YMinorTick' , 'off' , ...
'YGrid' , 'off' , ...
'XColor' , [.3 .3 .3], ...
'YColor' , [.3 .3 .3], ...
'XTick' , [0 10 20 30 40], ...
'YTick' , [0.2 0.3 0.4 0.9], ...
'LineWidth' , 2 );
set(hErr, ...
'Color' , [0.0 0.0 0.0] , ...
'Marker' , 'o' , ...
'MarkerSize' , 10 , ...
'MarkerEdgeColor' , [0 0 0] , ...
'MarkerFaceColor' , [0 0 1] , ...
'LineWidth' , 2 );
axis([0 50 0.15 0.35]);
set(gcf, 'PaperPositionMode', 'auto');
% print -depsc2 ~/fdf.eps