Fri 19 Aug 2016 02:59:41 PM UTC, original submission:
Unlike Matlab, uigetfile does not allow a subdirectory name as input argument. When trying anyway, a first bug pops up:
(Above on Windows but similar on Linux)
That is due to a type on scripts/gui/private/__file-filter__.m
Fixing that and trying again, the next bug pops up:
due to not checking for empty retval before indexing it.
When all this has been fixed uigetfile can also use directory names of path names as input arg. I'll attach a cset as soon as I have the bug number.
Unlike Matlab, whose docs mention that directory names should end with a filesep, I didn't bother to check for that in the patch. If no trailing filesep is present uigetfile displays the parent dir with the lowest dir (to the right of the rightmost filesep) highlighted (if present) or nothing highlighted if no match is found.
|