addContainingDirAnd​SubDir()

Adds the containing folder of the function and all subfolders to the path

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/59815-addcontainingdirandsubdir), 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