Code covered by the BSD License  

Highlights from
Recursively get file-dependencies of a given function

4.85714

4.9 | 7 ratings Rate this file 5 Downloads (last 30 days) File Size: 2.55 KB File ID: #15484

Recursively get file-dependencies of a given function

by Torsten Hopp

 

03 Jul 2007 (Updated 03 Jul 2007)

This function searches recursively for all files dependent to a given function (excluding matlabroo

| Watch this File

File Information
Description

getFileDependencies('funcName') recursively calls the MATLAB-function 'depfun' to find the files dependent to the given function. It filters out all dependendies on files from matlabroot.

The function returns a filename-list as cell-Array that can be used for example in setting up a job in the Distributed Computing Toolbox:
set(job, 'fileDependencies', getFileDependencies('myFunc'));

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (7)
04 Jul 2007 Ayal Anis

Although haven't tested extensively, it appears to be very useful (especially for unorganized coders...)

03 Feb 2009 Simon Robinson

Great - does what it says on the packet. Good for preparing MATLAB submissions...
file_list = getFileDependencies(ProgramName);
zip(ArchiveName, file_list);

22 Jul 2009 Brent Ware

seems to be broken in 2009b...

26 Aug 2009 Itamar

Hi,

Thanks alot for sharing! Works great for me. Very easy to use and understand.
Simon Robinson, thanks for the tip!

19 Oct 2009 Jurica

Excellent job,

thank you very much :)

06 May 2011 Thomas Vanaret  
05 Jul 2011 bocovp  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
path Torsten Hopp 22 Oct 2008 09:18:04
directories Torsten Hopp 22 Oct 2008 09:18:04
files Torsten Hopp 22 Oct 2008 09:18:04
distributed computing toolbox Torsten Hopp 22 Oct 2008 09:18:04
file dependencies Torsten Hopp 22 Oct 2008 09:18:04
depfun Torsten Hopp 22 Oct 2008 09:18:04
depfun Andres Ayala 01 Feb 2010 05:05:36

Contact us at files@mathworks.com