dcm2fmt.m converts dicom files existing in hospitals ... into any image format. It can convert a file.dcm to image.bmp or image.jpg as you want to process.
1. Run dcm2fmt.m code.
2. Chose your file.dcm (dicom), I have attached it with this code.
3. Chose image format needed to be saved in your pc.