# MATLAB Level 11: Testing & Reproducibility

> Level 11: Testing & Reproducibility of the LoWisa MATLAB course: Unit Tests, Reproducible Scripts, Engineering-Quality MATLAB. 3 lessons and 9 ideas, each explained in one line.

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

## 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](/courses/matlab/level-10-performance/): Vectorisation, Profiling, Memory-Efficient MATLAB.
- **Next:** [Level 12: MATLAB Mastery](/courses/matlab/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](/help/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.

---

Source: https://lowisa.dev/courses/matlab/level-11-testing-and-reproducibility/ · Updated 2026-11-30
