AddRecursivePath

Adds the directory specified and all subdirectories to the path.
2K Downloads
Updated 3 Jun 2005

No License

This function was created before GenPath and may be helpful to those who do not have it.

It is useful to put this function in your STARTUP.M file, so you can automatically add direcories to your path when you launch MATLAB. This way, even if your directory structure has changed, you will still include all your m-files.

Example:
AddRecursivePath('c:\dev\MATLAB');

Cite As

Michael Robbins (2024). AddRecursivePath (https://www.mathworks.com/matlabcentral/fileexchange/7764-addrecursivepath), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R10
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0