Embed Child Functions as SubFunctions

Routine for putting dependent subfunctions into one file.

You are now following this Submission

If you are like me you have lots of functions in MATLAB that you use all of the time to build more complicated functions. Then somebody wants that complicated function and you have to package up the necessary sub-routines, etc. This routine I made to help me gather my sub-routines as sub-functions embedded in the parent function. Allowing me to share only the necessary sub-functions and allowing the receiving person to only have one file to manage which they often find easier to handle.

Cite As

Matthew Anderson (2026). Embed Child Functions as SubFunctions (https://www.mathworks.com/matlabcentral/fileexchange/26938-embed-child-functions-as-subfunctions), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Chemistry in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0