You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
MCD displays in the command window a list of user-defined preferred directories (defined in a separate myCommonPaths.m file) as well as several recent locations used as the MATLAB current directory. The current directory is changed to the user's selection from the list.
Cite As
Sky Sartorius (2026). MCD - My change directory (https://ch.mathworks.com/matlabcentral/fileexchange/44043-mcd-my-change-directory), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: TXTMENU - Text-Based Menu for the Command Window, Change Directory to Current File in Editor
General Information
- Version 1.4.0.0 (2.69 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.4.0.0 | Fixed help block; added ability to automatically add the path to the current file open in the editor to the list. |
||
| 1.3.0.0 | Added ability to skip the menu/prompt and got straight to a location, e.g. "mcd 1"; added ability to have a color-striped menu. |
||
| 1.2.0.0 | Split off list of preferred paths into a separate file so the primary function mcd.m file doesn't have to be touched by users. |
||
| 1.1.0.0 | Updated to handle new location of recent directories. |
||
| 1.0.0.0 |