fileOrbit(<funName>) finds the collection (recursively) of all files on the Matlab path that can potentially be reached by calling the function <funName>. Only m-files that are not built-ins or other Matlab functions are found. The file names are listed in a cell array.
Syntax:
files = fileOrbit(myFun);
fileOrbit myFun
Cite As
Jan-Andrea Bard (2026). File Orbit (https://uk.mathworks.com/matlabcentral/fileexchange/183284-file-orbit), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2025b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: Get Dependent Files
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
