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.
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.