forked from monagarvert/eLife-2017-data-and-analysis-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_FigS1_1D_E.m
More file actions
36 lines (32 loc) · 943 Bytes
/
generate_FigS1_1D_E.m
File metadata and controls
36 lines (32 loc) · 943 Bytes
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
%% %% Figure 1 - figure supplement 1D,E
%
% response times and % correct for cover task during the scan
% Format: subjects x blocks
%
%%
clear all
close all
% Load behavioural data (RT and %correct for each object during the scan)
load('behaviour.mat')
m_rt_o = squeeze(mean(rt_object,2)); m_cr_o = squeeze(mean(cr_object,2))*100;
figure;
subplot(2,1,1)
bar(1:7,mean(m_rt_o),'facecolor',[0.5 0.5 0.5],'edgecolor',[0.5 0.5 0.5])
hold on
errorbar(1:7,mean(m_rt_o),std(m_rt_o)/sqrt(23),'k','linestyle','none')
set(gcf,'color','w')
box off
set(gca,'TickDir','out','XTick',1:7)
ylim([500 700])
ylabel('Reaction time')
xlabel('Object position')
subplot(2,1,2)
bar(1:7,mean(m_cr_o),'facecolor',[0.5 0.5 0.5],'edgecolor',[0.5 0.5 0.5])
hold on
errorbar(1:7,mean(m_cr_o),std(m_cr_o)/sqrt(23),'k','linestyle','none')
set(gcf,'color','w')
box off
set(gca,'TickDir','out','XTick',1:7)
ylim([50 100])
ylabel('Percent correct')
xlabel('Object position')