Dorian I'm pretty sure that 1st level SPM.mat files will contain the Sess field (SPM.Sess), which the 2nd level files do not contain. ----- Darren Gitelman On Mon, May 11, 2009 at 5:08 AM, Dorian P. <[log in to unmask]> wrote: > Dear all, > > > I've added a line of code in spm_DesRep.m to stop running jobs when > one regressor is not uniquely estimated > line 810: if any(est==0) h = uicontrol('Position',[20 150 200 > 40],'String','Design incorrect', 'Callback','uiresume(gcbf); '); > uiwait; delete(h); end; > > Is there any SPM flag to understand if the design matrix displayed is > 1st level or 2nd level? > > am using a paired t-test now and all boxes are normally gray, which > contains est == 0. > > Thank you. >