No BSD License  

Highlights from
AddRecursivePath

1.0

1.0 | 1 rating Rate this file 5 Downloads (last 30 days) File Size: 903 Bytes File ID: #7764
image thumbnail

AddRecursivePath

by

 

01 Jun 2005 (Updated )

Adds the directory specified and all subdirectories to the path.

| Watch this File

File Information
Description

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');

MATLAB release MATLAB 5.2 (R10)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Jun 2009 Joerg Bretschneider

I was not able to run this on Matlab 6.1, so Release 5.2 seems to be an error. Matlab 6.5 has regexp, but one which doesn#t support 3 argins.
Nevertheless the mfile is very simplistic, all subdirectories are used, but only the first level of a possible tree, and certain directories like @ or private or ., .. are included.

Contact us