Skip to content

depfun

matlab_compat · scripts/matlab_compat/depfun.m

DEPFUN  List M-file dependencies (toolbox packaging compatibility).

  LIST = depfun (FUN) returns a cell array of full paths for FUN and the
  user M-files it depends on.  MATLAB R2026a removed depfun; the supported
  replacement is matlab.codetools.requiredFilesAndProducts.  Nexus keeps
  this shim so older toolbox-packaging scripts keep working.

  LIST = depfun (FUN, '-toponly') limits the scan to FUN plus files it
  calls directly (same meaning as requiredFilesAndProducts 'toponly').

  LIST = depfun (FUN, '-quiet') suppresses progress (no-op on Nexus).

  [LIST, BUILTINS, CLASSES] = depfun (...) also returns empty cell arrays
  for BUILTINS and CLASSES (full MATLAB depfun classified those; packaging
  callers typically only use LIST).

  See also matlab.codetools.requiredFilesAndProducts, which, checkcode.