| An error occurs when I overlay a single-slice activation map on a
| single-slice structural image with SPM99. The messages are as follows:
| ---
| Warning: Reference to uninitialized variable P in spm_transverse/init at line
| 189.
| In /mnt/Term1/applications/spm99/spm_transverse.m (init) at line 189
| In /mnt/Term1/applications/spm99/spm_transverse.m at line 38
| In /mnt/Term1/applications/spm99/spm.m at line 1180
| ??? Index exceeds matrix dimensions.
|
| Error in ==> /mnt/Term1/applications/spm99/spm_transverse.m (init)
| On line 189 ==> transv.h(3) = line([1 1]*P(1),[0 dim(2)],'Color','w')
|
| Error in ==> /mnt/Term1/applications/spm99/spm_transverse.m
| On line 38 ==> init(SPM,VOL,hReg);
|
| Error in ==> /mnt/Term1/applications/spm99/spm.m
| On line 1180 ==> evalin('base',CBs{v-1})
| ---
| I'm not confident but the routine seems to successfully display the
| overlaid image despite the error messages. The 'watch' mouse pointer
| persists, though. How can I fix this problem? Thank you in advance for
| any help.
Thanks for the feedback. The overlay slices utility had not been
tested for 2D data, but it has been fixed now. While fixing it,
I realised that a couple of other routines also needed fixing for
2D data. The corrected routines are now available from:
ftp://ftp.fil.ion.ucl.ac.uk/spm/spm99_updates
The ammended files are spm_transverse.m, spm_mip.m and spm_mip_ui.m.
However, the directory also contains a few other tiny bug fixes
that you may also wish to pick up.
All the best,
-John
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|