image thumbnail

AddRecursivePath

version 1.0.0.0 (649 Bytes) by Michael Robbins
Adds the directory specified and all subdirectories to the path.

2K Downloads

Updated 03 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 (2022). 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

Community Treasure Hunt

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

Start Hunting!