GoThere

It changes the directory to where your active m-file is located
61 Downloads
Updated 11 Mar 2015

View License

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
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on File Operations in Help Center and MATLAB Answers
Version Published Release Notes
1.2.0.0

Rephrased the text a little..

1.1.0.0

...

1.0.0.0