From: Meghen on
Hello! I'm getting these error messages in matlab while trying to convert DICOM to ANALYZE format. Can anyone help me with this?


??? Error using ==> mat2file at 16
mat2file.c not compiled - see Makefile

Error in ==> file_array.subsasgn>subfun at 125
mat2file(sobj,dat,va{:});

Error in ==> file_array.subsasgn at 63
subfun(sobj,double(dat),args{:});

Error in ==> spm_dicom_convert>convert_mosaic at 195
dat(:,:,j) = volume(:,:,j);

Error in ==> spm_dicom_convert at 41
convert_mosaic(mosaic,root_dir,format);

Error in ==> spm_config_dicom>convert_dicom at 96
spm_dicom_convert(hdr,'all',job.root);

Error in ==> spm_jobman>run_struct1 at 1474
feval(prog,val);

Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});

Error in ==> spm_jobman>run_struct1 at 1482
run_struct1(c.val{i});

Error in ==> spm_jobman>run_job at 417
run_struct1(c);

Error in ==> spm_jobman>serial at 2039
run_job(jobs);

Error in ==> spm_jobman at 70
serial(varargin{2:nargin});

??? Error while evaluating uicontrol Callback


Thanks, Meghen
From: Ashish Uthama on
On Mon, 02 Nov 2009 20:56:03 -0500, Meghen <meghen(a)usc.edu> wrote:

> Hello! I'm getting these error messages in matlab while trying to
> convert DICOM to ANALYZE format. Can anyone help me with this?
>
>
> ??? Error using ==> mat2file at 16
> mat2file.c not compiled - see Makefile
>
> Error in ==> file_array.subsasgn>subfun at 125
> mat2file(sobj,dat,va{:});
>
> Error in ==> file_array.subsasgn at 63
> subfun(sobj,double(dat),args{:});
>
> Error in ==> spm_dicom_convert>convert_mosaic at 195
> dat(:,:,j) = volume(:,:,j);
>
> Error in ==> spm_dicom_convert at 41
> convert_mosaic(mosaic,root_dir,format);
>
> Error in ==> spm_config_dicom>convert_dicom at 96
> spm_dicom_convert(hdr,'all',job.root);
>
> Error in ==> spm_jobman>run_struct1 at 1474
> feval(prog,val);
>
> Error in ==> spm_jobman>run_struct1 at 1482
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_struct1 at 1482
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_job at 417
> run_struct1(c);
>
> Error in ==> spm_jobman>serial at 2039
> run_job(jobs);
>
> Error in ==> spm_jobman at 70
> serial(varargin{2:nargin});
>
> ??? Error while evaluating uicontrol Callback
>
>
> Thanks, Meghen

Meghen,

It might help to post SPM related queries at the SPM forum (in case you
have not yet)
http://www.fil.ion.ucl.ac.uk/spm/support/

The first message should be helpful:

> ??? Error using ==> mat2file at 16
> mat2file.c not compiled - see Makefile

Is there a compilation step you need to do before you can use this toolbox?