xiangruili / dicm2nii

DICOM to NIfTI conversion, NIfTI tools
BSD 2-Clause "Simplified" License
91 stars 44 forks source link

Error using uifigure in latest matlab #63

Open ddwagner opened 1 year ago

ddwagner commented 1 year ago

Looks like Matlab changed how uifigure works in the latest version. dicm2nii has no trouble creating the bids GUI figure on older matlab (2019a) but throws a "Error using uifigure, illegal first argument" on Matlab 2023b.

The offending line is 701 in idcm2nii.m Referring to the figure args at line 692.

Specifically the first argument: 'bids'*256.^(0:3)' As far as I can tell, it's there for octave support but doesn't do anything in matlab. Looks like 2019a ignored it but 2023b is a bit pickier.

Removing it has no apparent effect other than getting rid of the error.

xiangruili commented 1 year ago

Fixed as suggested. Thanks.