> I use the new script to create the new template but I still have the error
> message as follows:
> iteration 16: FWHM = 13.29 Var = 2.14177
> ??? Index exceeds matrix dimensions.
>
> Error in ==> c:\spm2b\toolbox\template.m
> On line 47 ==> tmp = n(:,:,p); tmp(msk) = tmp(msk) + tn(msk); n
> (:,:,p) = tmp;
> Cany you help me ?
Did you type the following into Matlab first? :
clear functions
Matlab loads a function into memory, compiling it into a form that it
can execute more readily. It remains there for future use. When you
clear a function, it gets recompiled.
If an error occurs with a function, Matlab will open the m-file (which may
have changed from the one that was originally compiled), and display the
relevent line (which may have changed).
Best regards,
-John
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|