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
- Before: Level 10: Performance: Vectorisation, Profiling, Memory-Efficient MATLAB.
- Next: Level 12: MATLAB Mastery: Advanced Numerical Architecture, Performance Trade-Offs, Reading and Improving Complex MATLAB.
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.