from Simulation of Error Negativite Response (Human Brain) by Davide Imperati
Simulation of ERn driven behavioural response to a more probable/less probable rewarded chioce test

go.m
d=[39 28 39;67 18 45;69 39 34;40 30 41;28 18 44;26 39 33;52 14 44;68 25 60;58 25 67;41 14 46;28 23 58;37 24 67];
%d=[93-d(:,2),d(:,3)];
d=d(:, [2,1,3]);
img=analyze75read('AN2T060123_1.7_seg.hdr');
img2=img;
[r,c]=size(d);
for i=1:r
    img2(d(i,1)+1,d(i,2)+1,d(i,3)+1)=5;
end
img2(1,1,1)=7;

Contact us at files@mathworks.com