orphan_libs(test, trgt)

Version (4,09 ko) par Ben
Identify directories which are or are not referenced (orphans) from any .m file in a given directory
290 téléchargements
Mise à jour 11 août 2015

Afficher la licence

%% 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'
% [libgraf, lib_orf] = orphan_libs(test, trgt)
% test - (string) path to the directory to test
% trgt - (string) path to the directory to find references
% 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'

Citation pour cette source

Ben (2024). orphan_libs(test, trgt) (https://www.mathworks.com/matlabcentral/fileexchange/52379-orphan_libs-test-trgt), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2015a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
En savoir plus sur Search Path dans Help Center et MATLAB Answers
Tags Ajouter des tags

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version

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

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

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