MATLAB course

MATLAB Level 11: Testing & Reproducibility

Testing & Reproducibility is level 11 of 12 of the LoWisa MATLAB course. It has 3 lessons and 9 ideas. Below is every lesson and what it teaches, in one line each.

Updated 2026-11-30

Unit Tests

  • matlab.unittest. The unittest framework runs test classes and functions: assertions, fixtures, CI-ready.
  • Tolerance assertions. Numerical tests assert within tolerance: verifyEqual with AbsTol, floating-point honesty.
  • Test data. Tests carry small reference datasets: hand-checked answers pinning the math.

Reproducible Scripts

  • Projects. MATLAB Projects pin paths and startup: the analysis opening identically on any machine.
  • Seeds. rng seeds randomness: simulations reproducing exactly on rerun.
  • No manual steps. Reproducibility means no hand edits: raw data to figures through code alone.

Engineering-Quality MATLAB

  • Code analyzer. The analyzer flags smells and errors as you type: warnings treated as review comments.
  • Version control. MATLAB work lives in git: scripts, functions and tests versioned like any code.
  • Review culture. Engineering MATLAB is reviewed: models checked by colleagues before decisions ride on them.

Before and after this level

In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.

Frequently asked questions

What does MATLAB Level 11: Testing & Reproducibility cover?

Unit Tests, Reproducible Scripts, Engineering-Quality MATLAB: 3 lessons and 9 ideas.

What should I know before this level?

The level before it, Level 10: Performance, which covers Vectorisation, Profiling, Memory-Efficient MATLAB.

Learn MATLAB on your phone

The first level is free. LoWisa is on Google Play and the App Store.