Tip: calling subfunctions from outside m-file (Final)
Calling/debugging subfunctions or writing large subfunctions is straight forward with this trick.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 .
General Information
- Version 1.6.0 (4.1 KB)
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. |
||
| 1.5.0 | copyright update |
||
| 1.4.0 | Final version. Just two lines of codes. |
||
| 1.3.0 | Hopefully final version. Very simple two line trick to access all subfunctions outside m-file. |
||
| 1.2.0 | Hopefully final version. Now it works for varargout as well. |
||
| 1.1.0 | No 'eval'. Super simple two line code snippet. Inspired by the comment of @us. Thanks to 'us'. |
||
| 1.0.0 |