Hi SPM users,
We found that there was an inconsistancy in Matlab - Version
6.0.0.88 (R12) on GLNX86 that crashes SPM when running "Basic
Models" for 5 subjects.
In spm_spm_ui.m, the line: VY(:,i) = spm_vol(char(P{:,i}))
is intended to create a structure the same size as P,
containing 5 fields. For example, if P is size 12, VY is a
structure of size 12, containing 5 fields. However, in the
event that the size of P is 5, VY is erroneously defined as
a structure of size 1, instead of a structure of size 5.
This will later cause spm_spm_ui to crash when it's looking
for the the remainder of VY.
Our fix for this is to change the line from:
VY(:,i) = spm_vol(char(P{:,i}));
to
VY(1:nScan, i) = spm_vol(char(P{:,i}));
This clarifies VY to be a structure of the same size
as P, since P is of the size nScan.
________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Felice Sun
UCSF/UCB BioEngineering Group
Dynamic NeuroImaging Laboratory
University of California, San Francisco
(415) 514 - 2527
|