cdtofile

Change Current Folder to ...

You are now following this Submission

Let's say you have one or several M-file opened in the MATLAB Editor
Executing this code will change your current folder in the folder where
the active M-file is located
This very small script is very useful as a MATLAB shortcut

Cite As

Aurelien Queffurust (2026). cdtofile (https://au.mathworks.com/matlabcentral/fileexchange/59544-cdtofile), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated title