DepSubFun

버전 1.0.0.0 (1.13 KB) 작성자: Michael Robbins
Locate dependent sub-functions of m-files.
다운로드 수: 2.4K
업데이트 날짜: 2005/9/8

라이선스 없음

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

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R14SP1
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Search Path에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

?