matlab.codetools.requiredFilesAndProducts
matlab · scripts/+matlab/+codetools/requiredFilesAndProducts.m
REQUIREDFILESANDPRODUCTS List dependencies of MATLAB program files.
FLIST = matlab.codetools.requiredFilesAndProducts (FILES) returns the
full paths of FILES plus every user .m / data file they need, found by
tracing function calls and I/O string literals (and honouring addpath
calls found in those sources). Built-ins and toolbox / runtime files
already shipped with the product are omitted from FLIST (they appear
as products in PLIST instead).
[FLIST, PLIST] = ... also returns a product struct array with fields
Name, Version, ProductNumber, Certain (MATLAB R2026a shape).
[... ] = ... (..., 'toponly') limits the scan to files referenced
directly by FILES (case-insensitive). MATLAB's documented syntax.
This is the public dependency-analysis surface that MATLAB Compiler
(mcc / compiler.build) relies on. See also __mcc_dependencies__.