MATLAB: Does DICOMINFO not work on some files

Image Processing Toolboxinconsistentlength

Using DICOMINFO results in the following error messages:
??? Error using ==> C:\MATLAB6p1\toolbox\images\images\private\dicom_read_attr (read_elt)
Attribute (0002,0016) has inconsistent length 18.
Error in ==> C:\MATLAB6p1\toolbox\images\images\private\dicom_read_attr.m
On line 39 ==> [attr, data] = read_elt(file, info, dictionary);
Error in ==> C:\MATLAB6p1\toolbox\images\images\private\dicom_read_fmeta.m
On line 44 ==> [attr, data, file] = dicom_read_attr(file, info, dictionary);
Error in ==> C:\MATLAB6p1\toolbox\images\images\dicominfo.m
On line 140 ==> [info{p}, file] = dicom_read_fmeta(file, info{p}, args.Dictionary);
Error in ==> C:\MATLAB6p1\work\CTDistortion.m
On line 15 ==> imageinfo=dicominfo('CTphantom.dcm')

Best Answer

There is a patch available for the Image Processing Toolbox 3.1 (R13) that addresses this issue in addition to other known issues. You can get information and download the patch from the Related Solution listed at the bottom of the page.
Once this patch has been downloaded, a warning message replaces the error message that you are currently receiving, allowing you to use DICOMINFO on the DICOM file.