Is it possible that you don't have your MATLABPATH specified? This is the
kind of message that happens when spm is started in the directory containing
the spm distribution, and then the working directory is changed to some other
directory. This confuses MATLAB because it does not have the magical ability
to work out where to find the various spm functions - unless it has been
explicitly told where to find them.
Best regards,
-John
On Friday 05 September 2008 12:54, John Done wrote:
> Dear SPM5ers.
> I get the following error messages when using 'DICOM import' in Matlab
> 7.4.0 please . Most archived messages on this topic for earlier versions of
> Matlab have suggested an incompatibility of the Matlab and SPM version with
> possible solutions. Any advice welcomed.
>
> Error message:
>
>
> ??? Undefined function or method 'spm_dicom_headers' for input arguments of
> type 'char'.
>
> Error in ==> spm_config_dicom>convert_dicom at 95
> hdr = spm_dicom_headers(strvcat(job.data));
>
> Error in ==> spm_jobman>run_struct1 at 1472
> feval(prog,val);
>
> Error in ==> spm_jobman>run_struct1 at 1480
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_struct1 at 1480
> run_struct1(c.val{i});
>
> Error in ==> spm_jobman>run_job at 417
> run_struct1(c);
>
> Error in ==> spm_jobman>serial at 2037
> run_job(jobs);
>
> Error in ==> spm_jobman at 70
> serial(varargin{2:nargin});
>
> ??? Error using ==> spm_jobman('serial','','jobs.util.dicom');
> Undefined function or method 'spm_dicom_headers' for input arguments of
> type 'char'.
>
> ??? Error while evaluating uicontrol Callback
>
> Regards
> John
|