|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BigN=size(MEGA_ERP_Corr,1);
|
|
|
tx=-2000:2:1998;
|
|
|
t1=find(tx==-500); t2=find(tx==1000);
|
|
|
tx2disp=-500:2:1000;
|
|
|
|
|
|
P2=200; P2range=10;
|
|
|
N2=275; N2range=20;
|
|
|
P3=450; P3range=150;
|
|
|
LATE=700; LATErange=250;
|
|
|
|
|
|
figure;
|
|
|
subplot(4,1,1); hold on
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[2,4,6,8]),4),1)),'r','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[1,3,5,7]),4),1)),'b','linewidth',2);
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[2,4,6,8]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,19,t1:t2,[2,4,6,8]),4),1))./sqrt(BigN),'r');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[1,3,5,7]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,19,t1:t2,[1,3,5,7]),4),1))./sqrt(BigN),'b');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[2,4,6,8]),4),1)),'r','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,19,t1:t2,[1,3,5,7]),4),1)),'b','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('FCz')
|
|
|
legend({'CONFLICT','CONGRUENT'})
|
|
|
|
|
|
subplot(4,1,2); hold on
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,28,t1:t2,[2,4,6,8]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,28,t1:t2,[2,4,6,8]),4),1))./sqrt(BigN),'r');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,28,t1:t2,[1,3,5,7]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,28,t1:t2,[1,3,5,7]),4),1))./sqrt(BigN),'b');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,28,t1:t2,[2,4,6,8]),4),1)),'r','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,28,t1:t2,[1,3,5,7]),4),1)),'b','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('Cz')
|
|
|
|
|
|
subplot(4,1,3); hold on
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,46,t1:t2,[2,4,6,8]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,46,t1:t2,[2,4,6,8]),4),1))./sqrt(BigN),'r');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,46,t1:t2,[1,3,5,7]),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,46,t1:t2,[1,3,5,7]),4),1))./sqrt(BigN),'b');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,46,t1:t2,[2,4,6,8]),4),1)),'r','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,46,t1:t2,[1,3,5,7]),4),1)),'b','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('Pz')
|
|
|
|
|
|
subplot(4,1,4); hold on
|
|
|
tx=-2000:2:1998;
|
|
|
LRP_t1=find(tx==-1000); LRP_t2=find(tx==500);
|
|
|
LRP_tx2disp=-1000:2:500;
|
|
|
shadedErrorBar(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[2,4,6,8]),3),1)),squeeze(std(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[2,4,6,8]),3),1))./sqrt(BigN),'r');
|
|
|
shadedErrorBar(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[1,3,5,7]),3),1)),squeeze(std(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[1,3,5,7]),3),1))./sqrt(BigN),'b');
|
|
|
plot(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[2,4,6,8]),3),1)),'r','linewidth',2);
|
|
|
plot(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,[1,3,5,7]),3),1)),'b','linewidth',2);
|
|
|
plot([0 0],[-.1 .1],'k:'); plot([-1000 500],[0 0],'k:');
|
|
|
|
|
|
|
|
|
title('LRP')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
figure;
|
|
|
site=19;
|
|
|
subplot(4,1,1); hold on
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),'k','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),'g','linewidth',2);
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1))./sqrt(BigN),'k');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1))./sqrt(BigN),'g');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),'k','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),'g','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('FCz')
|
|
|
legend({'REPEAT','SWITCH'})
|
|
|
|
|
|
subplot(4,1,2); hold on
|
|
|
site=28;
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1))./sqrt(BigN),'k');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1))./sqrt(BigN),'g');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),'k','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),'g','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('Cz')
|
|
|
|
|
|
subplot(4,1,3); hold on
|
|
|
site=46;
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1))./sqrt(BigN),'k');
|
|
|
shadedErrorBar(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),squeeze(std(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1))./sqrt(BigN),'g');
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,1:4),4),1)),'k','linewidth',2);
|
|
|
plot(tx2disp,squeeze(mean(mean(MEGA_ERP_Corr(:,site,t1:t2,5:8),4),1)),'g','linewidth',2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
title('Pz')
|
|
|
|
|
|
subplot(4,1,4); hold on
|
|
|
tx=-2000:2:1998;
|
|
|
LRP_t1=find(tx==-1000); LRP_t2=find(tx==500);
|
|
|
LRP_tx2disp=-1000:2:500;
|
|
|
shadedErrorBar(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,1:4),3),1)),squeeze(std(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,1:4),3),1))./sqrt(BigN),'k');
|
|
|
shadedErrorBar(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,5:8),3),1)),squeeze(std(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,5:8),3),1))./sqrt(BigN),'g');
|
|
|
plot(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,1:4),3),1)),'k','linewidth',2);
|
|
|
plot(LRP_tx2disp,squeeze(mean(mean(MEGA_ERP_RESP_Corr(:,LRP_t1:LRP_t2,5:8),3),1)),'g','linewidth',2);
|
|
|
plot([0 0],[-.1 .1],'k:'); plot([-1000 500],[0 0],'k:');
|
|
|
|
|
|
|
|
|
title('LRP') |