Hello,
Following the I have compiled SPM 8 (ver. 6313) and VBM 8 (ver. 435)
with Matlab 2010a (same version that is used at UCL).
In order to test, I tried to segment a simple T1 image. After writing
the warped images, the code fails with the following error:
Failed 'VBM8: Estimate & Write'
Undefined function or variable "r_vbm".
In file
"/home_local/mdiallo/spm_exec/spm8_mcr/Code/matlab/spm8_updates_r6313/to
olbox/vbm8/cg_vbm8_write.m" (???), function "cg_vbm8_write" at line 965.
In file
"/home_local/mdiallo/spm_exec/spm8_mcr/Code/matlab/spm8_updates_r6313/to
olbox/vbm8/cg_vbm8_run.m" (???), function "run_job" at line 248.
In file
"/home_local/mdiallo/spm_exec/spm8_mcr/Code/matlab/spm8_updates_r6313/toolbox/vbm8/cg_vbm8_run.m"
(???), function "cg_vbm8_run" at line 96.
The following modules did not run:
Failed: VBM8: Estimate & Write
Looking at the source code, the faulty line is.
str = [str struct('name', 'Versions
Matlab/SPM8/VBM8:','value',sprintf('%s / %s / %s',r_matlab,r_spm,r_vbm))];
The "r_vbm" variable is defined just above:
A = ver;
for i=1:length(A)
if strcmp(A(i).Name,'Voxel Based Morphometry Toolbox')
r_vbm = A(i).Version;
end
if strcmp(A(i).Name,'Statistical Parametric Mapping')
r_spm = A(i).Version;
end
if strcmp(A(i).Name,'MATLAB')
r_matlab = A(i).Version;
end
end
The code seems correct (test on Matlab with non-compiled SPM+VBM). As
Matlab doesn't complain about the "r_matlab" and "r_spm" variables, I
guess they are correctly detected in the compiled version.
Any clue?
Mathieu
|