Doctest - embed testable examples in your function's help comments
Put a usage example in the help of your function, then test it to make sure it still works over time
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
Thomas Smith (2026). Doctest - embed testable examples in your function's help comments (https://ch.mathworks.com/matlabcentral/fileexchange/28862-doctest-embed-testable-examples-in-your-function-s-help-comments), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired by: MUnit: a unit testing framework in Matlab, mlunit_2008a
General Information
- Version 1.1.0 (16.8 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux