You want to convert dcm file into what?Does the Siemens 3T scanner directly provides you an option to save the images into dcm format. abhinay On 3/31/07, 龙 翔宇 <[log in to unmask]> wrote: > > When I am trying to convert dcm files obtained from our Siemens 3T > scanner, > the error was came as follows: > > ??? One or more output arguments not assigned during call to > 'spm_dicom_headers (decode_csa1)'. > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m (decode_csa) On > line 341 ==> t = decode_csa1(fp,lim); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m (read_dicom) On > line 86 ==> dat = decode_csa(fp,tag.length); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m (read_sq) On > line > 192 ==> Item = read_dicom(fp, flg, dict, tag.length); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m (read_dicom) On > line 162 ==> [dat,len1] = read_sq(fp, flg,dict,tag.length); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m (readdicomfile) > On line 59 ==> ret = read_dicom(fp, 'le',dict); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm_dicom_headers.m On line 24 ==> > tmp = readdicomfile(P(i,:),dict); > > Error in ==> D:\MATLAB6p5p1\work\spm2\toolbox\dicom\spm_DICOM.m On line > 143 > ==> hdr = spm_dicom_headers(P1); > > Error in ==> D:\MATLAB6p5p1\work\spm2\spm.m On line 1183 ==> > evalin('base',varargin{2}(i).prog) > > ??? Error while evaluating uicontrol Callback. > > My data was one file include one volumn, and we scan 30 slices but the dcm > file included 36 slices. > > _________________________________________________________________ > 享用世界上最大的电子邮件系统— MSN Hotmail。 http://www.hotmail.com > -- Abhinay D. Joshi UT Southwestern E06.122 MC 9061 Dallas, TX 75390 P -214-648-9265 Principal Imaging Scientist Avid Radiopharmaceuticals, Inc. 3624 Market Street, 5th Floor Philadelphia, PA 19104