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 (2024). cdtofile (https://www.mathworks.com/matlabcentral/fileexchange/59544-cdtofile), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2016b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on File Operations in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Updated title |