DepSubFun

Locate dependent sub-functions of m-files.
2,4K descargas
Actualizado 8 sep 2005

Sin licencia

function funnames = DepSubFun(CS,ExcludeRoot);

DEPSUBFUN Locate dependent functions of an M-file.But, unlike DEPFUN, it will look *inside* m-files for *subfunctiosn* and the ability to excludes files that are in the MATLAB root (default).

The intent of finding the subfunctions is to prevent repetition and to identify which functions need to be updated so if you fix one copy, then you will know there are other copies out there that need to be fixed.

The intent of excluding files in the MATLAB root is to find which files must be included in a distribution so they may be uploaded to the MATLAB File Exchange.

INPUTS:
CS, a cellstring of file names (the files you want analysed)

ExcludeRoot, 0 if you want all function names, 1 if you only want the ones not in the MATLAB root.

OUTPUTS
funnames, a cellstring of functions and subfunctions

USAGE
>>d=dir('*.m');
>> DepSubFun({d.name})

See DEPFUN

Keyworkds depfun, dependent, function, subfunction, name

It's not fancy, but it works

Citar como

Michael Robbins (2024). DepSubFun (https://www.mathworks.com/matlabcentral/fileexchange/7434-depsubfun), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14SP1
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Search Path en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

?