scottclowe / matlab-schemer

Apply and save color schemes in MATLAB with ease.
BSD 2-Clause "Simplified" License
1.19k stars 273 forks source link

Added default scheme path to uigetfile dialog, with safe fallback. #34

Open ajtrowell opened 3 years ago

ajtrowell commented 3 years ago

Provided a function getSchemeDialogPathSafely() and use it to set the default folder for the uigetfile dialog box.

The function finds thisFilePath (the containing folder of schemer_import.m) and then returns thisFilePath/schemes/, or if that folder doesn't exists, then it returns thisFilePath.