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

Download
Download

You are now following this Submission

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 .

Categories

Find more on Testing Frameworks 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.1.0

Added a note that the bug tracker is available, and invited to contribute

Download
1.0.0

Download