Good evening in case you are still trying: here is an extract from a file I got from Klaas that could explain and possibly help: % Create 1st contrast for 'effects of interest' % (necessary because the current version of spm_spm returns an % empty array for SPM.xCon) %------------------------------------------------------------------ try iX0 = [SPM.xX.iB SPM.xX.iG]; catch iX0 = []; end SPM.xCon = spm_FcUtil('Set','effects of interest','F','iX0',iX0,SPM.xX.xKXs); So, put this "magic formula" to create sort of a dummy contrast and then go on doing your own contrasts. Iris -----Original Message----- From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Jane Klemen Sent: 02 February 2005 23:37 To: [log in to unmask] Subject: Re: [SPM] Creating contrasts with a BATCH Hi Nicholas, I'm pretty much guessing here, but I have exactly the same error as you. The analysis worked when I tried it out on some dummy data, so it's not the program for sure. I think you might have an error in your contrast specification - I for sure do, so that's what I'll be trying out, but that will take me all night :( Good luck with it, Jane On 2/2/05 10:30 pm, "Nicholas Masse" <[log in to unmask]> wrote: Hi everyone. I'm using a BATCH file to design, estimate and create contrasts for a matrix that is modified from Karl Friston's spm_batch.m. The batch works perfectly designing and estimating the matrix, but when it comes time to create the contrasts for it, matlab spits out the following error: ??? Error using ==> spm_FcUtil not contrast dim. in spm_FcUtil c Error in ==> SavioTest at 516 SPM.xCon(end + 1) = spm_FcUtil('Set',cname, 'T', 'c',c(:),SPM.xX.xKXs); I'm guessing it's something quite simple to fix, but I don't even know where to begin. Any suggestion would be great. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nicholas Masse, M.Sc. Research Technician Neurovascular Research Lab School of Kinesiology University of Western Ontario Rm. 3110 Thames Hall 519.661.2111 x88526 [log in to unmask] <mailto:[log in to unmask]> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~