AddRecursivePath

Adds the directory specified and all subdirectories to the path.

You are now following this Submission

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 (2026). AddRecursivePath (https://www.mathworks.com/matlabcentral/fileexchange/7764-addrecursivepath), 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