addContainingDirAndSubDir()
Version 1.0.0.0 (147 Bytes) by
benjamin rinauto
Adds the containing folder of the function and all subfolders to the path
Simply put the .m file in your main project directory. Calling it will add its containing folder and all subfolders to the path. This is a convenient way to add all the correct subfolders when the project may move between computers or operating systems.
Cite As
benjamin rinauto (2026). addContainingDirAndSubDir() (https://uk.mathworks.com/matlabcentral/fileexchange/59815-addcontainingdirandsubdir), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2006a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Search Path in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
