Tip: calling subfunctions from outside m-file (Final)

Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick.

Download
Download

You are now following this Submission

Cite As

Sung Soo Kim (2026). Tip: calling subfunctions from outside m-file (Final) (https://www.mathworks.com/matlabcentral/fileexchange/23124-tip-calling-subfunctions-from-outside-m-file-final), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Debugging and Improving Code 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.6.0

codes were cleaned up. help was extensively updated.

Download
1.5.0

copyright update

Download
1.4.0

Final version. Just two lines of codes.

Download
1.3.0

Hopefully final version. Very simple two line trick to access all subfunctions outside m-file.

Download
1.2.0

Hopefully final version. Now it works for varargout as well.

Download
1.1.0

No 'eval'. Super simple two line code snippet. Inspired by the comment of @us. Thanks to 'us'.

Download
1.0.0

Download