% contrast specification

Cspec = {...
[1 -1 0],   'Condition 1 > condition 2';
[-1 1 0],   'Condition 2 > Condition 1';
[1 0 -1],   'Condition 1 > condition 3';
{[1 -1 0],
 [1 0 -1]}, 'Any differential effect';
}

clear i;
n= ; % number of subjects

for i=1:n,
    d=sprintf('/full/path/to/subject%d/SPM.mat',i);
    MakeCon(d,Cspec),
end
