Find 'orphaned' m-files

(in a directory tree)


Updated 4 Apr 2016

View License

Function ORPHANS searches a directory tree for m-files whose names are not found in other m-files. (Crudeness of this approach as a way of tracking file dependencies is acknowledged).
This is a revision featuring improvements contributed by Ryan Hamilton. (Thanks, Ryan!)

Cite As

Dimitri Shvorob (2023). Find 'orphaned' m-files (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Search Path in Help Center and MATLAB Answers

Inspired by: mgrep, Recursive directory listing

Inspired: orphan_libs(test, trgt)

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

cosmetic changes