I use a well-known tool called dcm2niix to convert DICOMs to nifti. the nifti files can be read by any nifti viewer softwares and also with SPM , But, when I try to load the files into the Matlab using built-in niftiread function, it returns an empty array. Any comment why 'niftiread' doesn't work properly?
'niftiinfo' function works fine and can read header data.
Matlab version: R2018a