Cool CD (Change Directory)

A better version of the "cd" function (to change directories)

You are now following this Submission

This is a very simple tool to maintain a stack of directories that you want to move between. It works just like "CD", except when you use "CCD" it adds the current directory (the one you are moving OUT OF) to the top of your directory stack.
You can quickly change back to any of the directories in your stack, add new ones, or clear the stack. Also, just typing "CCD" (with no arguments) will toggle through the stack of directories. This is especially nice if you just need to bounce back and forth between 2 directories.

The usage is well documented in the function's "help" section.

Cite As

Brendan (2026). Cool CD (Change Directory) (https://au.mathworks.com/matlabcentral/fileexchange/5959-cool-cd-change-directory), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Change Directory (cd) Overload

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.1

Updated license

1.0.0.0