I guess you are using Matlab R2006? Try to use an older version of
Matlab this might help. I have not yet figured out what causes this
error, but it seems to be related to the way Matlab is opening and
reading files.
Heiko
Sharlene Newman wrote:
> I'm having problems with the dicom toolbox. I get the error message
> below when I attempt to use the toolbox. If anyone can help me fix
> this I would be very grateful.
>
> Sharlene
>
> ??? Attempted to access (2); index out of bounds because numel()=0.
>
> Error in ==> spm_dicom_headers>decode_csa2 at 421
> len = t(i).item(j).xx(2);
>
> Error in ==> spm_dicom_headers>decode_csa at 339
> t = decode_csa2(fp,lim);
>
> Error in ==> spm_dicom_headers>read_dicom at 86
> dat = decode_csa(fp,tag.length);
>
> Error in ==> spm_dicom_headers>readdicomfile at 59
> ret = read_dicom(fp, 'le',dict);
>
> Error in ==> spm_dicom_headers at 24
> tmp = readdicomfile(P(i,:),dict);
>
> Error in ==> spm_DICOM at 7
> hdr = spm_dicom_headers(P);
>
> Error in ==> spm at 1183
> evalin('base',varargin{2}(i).prog)
>
> ??? Error using ==>
> spm('TBlaunch',get(gcbo,'UserData'),get(gcbo,'Value')-1),
> set(gcbo,'Value',1)
> Attempted to access (2); index out of bounds because numel()=0.
>
> ??? Error while evaluating uicontrol Callback
>
>
|