Any time you call "goThere", your working directory will be changed to where your actual m file is located (you have it open in your editor). If you like it, you can call it from a shortcut (button) for your convenience.
AND/OR call "goThere" from the end of "matlabrc.m" and it will change the directory to the path where your actual active mfile is located (that is, the last file edited in your MATLAB editor provided you did not close it before exit).
HINT: Run MATLAB as admin and type "edit matlabrc.m" then write to the end "goThere();".
Gergely Öllös (2023). GoThere (https://www.mathworks.com/matlabcentral/fileexchange/49979-gothere), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!