orphan_libs(test, trgt)

버전 1.3.0.0 (4.09 KB) 작성자: Ben
Identify directories which are or are not referenced (orphans) from any .m file in a given directory
다운로드 수: 290
업데이트 날짜: 2015/8/11

라이선스 보기

%% FUNCTION ORPHAN_LIBS describes .m file linkage between directories.
%
% Operation: looks at every .m file in every directory in 'test', and
% checks whether it is cited anywhere in the directory 'trgt'. By which
% means we can check all directories if they are referenced or 'orphaned'
%
%
% SYNTAX
% [libgraf, lib_orf] = orphan_libs(test, trgt)
%
% INPUT
% test - (string) path to the directory to test
% trgt - (string) path to the directory to find references
%
% OUTPUT
% libgraf - (struct array) each element refers to a directory with 4 fields:
% - 'path' (string) is the directory path
% - 'mnum' (integer) number of .m files found in 'path'
% - 'refs' (cell array) holds 'mnum' struct arrays.
% The ith struct array element holds the .m filename and lines
% of code referring to the ith .m file found under 'path'
% - 'name' (cell array) holds 'mnum' strings. The ith string is
% the name of the ith .m file found under 'path'

인용 양식

Ben (2024). orphan_libs(test, trgt) (https://www.mathworks.com/matlabcentral/fileexchange/52379-orphan_libs-test-trgt), MATLAB Central File Exchange. 검색됨 .

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

New description
Some bug fixing; Returns a more comprehensive package of results; commenting and copyright.

1.2.0.0

Update returns struct with matched referee files and code lines. May be buggy

1.1.0.0

Reports more details: lines where function name appears are also returned.

1.0.0.0