Adding all subfolders of a certain (base)folder to the path.

This code will add every subfolden within a certain base folder to the searchpath.

You are now following this Submission

This code will add every subfolden within a certain base folder to the searchpath.
This code can be used to import files which are saved in different folders without knowing exactly in which folder the files are saved.

Cite As

Stijn Haenen (2026). Adding all subfolders of a certain (base)folder to the path. (https://in.mathworks.com/matlabcentral/fileexchange/73801-adding-all-subfolders-of-a-certain-base-folder-to-the-path), 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