GoThere
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();".
Cite As
Gergely Öllös (2026). GoThere (https://www.mathworks.com/matlabcentral/fileexchange/49979-gothere), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
