You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Overloads built-in MATLAB function 'cd', enabling changing the directory to one in the MATLAB path by using a filename in that directory. For example, if 'awesome.m' is somewhere in your MATLAB path, this function enables a command like cd('awesome')
MATLAB will give you warnings that this function has the same name as a MATLAB builtin. Use warning('off','MATLAB:dispatcher:nameConflict'); (like in startup.m) to turn off
It would be interesting to combine this function with the features in Brendan Hannigan's Cool CD: https://www.mathworks.com/matlabcentral/fileexchange/5959-cool-cd-change-directory
Cite As
David Aronstein (2026). Change Directory (cd) Overload (https://au.mathworks.com/matlabcentral/fileexchange/100059-change-directory-cd-overload), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: Cool CD (Change Directory)
General Information
- Version 1.0 (1.75 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0 |
