UniqueFuncNames

버전 1.0.0.0 (3.77 KB) 작성자: Jan
Check uniqueness of function names
다운로드 수: 503
업데이트 날짜: 2010/6/10

라이선스 보기

UniqueFuncNames - Check uniqueness of function names

If you install a large 3rd party toolbox, the file names may interfere with other installed toolboxes. This simple funtion compares the names of all M-, P- and Mex-files found in the Matlab path and displays non-unique names.

P- and Mex-files with the same name as a corresponding M-file are accepted, if they are found in the same folder.
Local subfunctions inside the M- or P-file and nested functions are not taken into account, because it is assumed, that a potential shadowing is wanted.
Class paths as "\@cell" and package paths as "\+mypackage" are not considered in this version.

INPUT: None.
OUTPUT: Logical flag, TRUE if the names are unique considering some
exceptions:
1. Files which are intentionally not unique:
"Contents.m" exists in each folder.
"prefspanel.m" exists in some folder to register control panels.
"messageProductNameKey" returns the product key for toolboxes.
2. Some user defined folders might contain functions, which are wanted to
shadow function of Matlab's or user define toolbox functions, e.g. to
improve them. Such folders must be inserted in a leading position in the
Matlab path. A further example is a folder, which contains Mex functions,
which are compiled for a specific Matlab version, e.g. if you run Matlab
6.5 (DLL) and 7 (MEXW32) simulataneously.
3. Further exceptions occur e.g. in Matlab 2009a:
\R2009a\toolbox\matlab\lang\function.m
\R2009a\toolbox\compiler\function.m
Exclude one of them using the full file name including the path.
The exceptions depend on your installed toolboxes and have to be adjusted to
your machine. The corresponding lines are marked by '###' in the source.

I'd appreciate all comments and ideas for improvements and additions.

For further debugging see also:
CHECKVARS (Matt Fig):
http://www.mathworks.com/matlabcentral/fileexchange/27853
FDEP (Us):
http://www.mathworks.com/matlabcentral/fileexchange/17291

인용 양식

Jan (2024). UniqueFuncNames (https://www.mathworks.com/matlabcentral/fileexchange/27861-uniquefuncnames), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2009a
모든 릴리스와 호환
플랫폼 호환성
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