Enhanced Change Directory (ecd)

Change to a directory, creating it if needed.

You are now following this Submission

ecd can be used exactly as the built-in cd function. If the desired directory does not exist, the function will create it and switch as normal. Calling ecd with no argument simply calls the built-in cd and returns the current directory.
This function must be added to the MATLAB path in order to be used.

Cite As

David Guglielmo (2026). Enhanced Change Directory (ecd) (https://www.mathworks.com/matlabcentral/fileexchange/55273-enhanced-change-directory-ecd), MATLAB Central File Exchange. Retrieved .

Tags

Add Tags

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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