© Michael Paluszek and Stephanie Thomas 2020
M. Paluszek, S. ThomasMATLAB Recipeshttps://doi.org/10.1007/978-1-4842-6124-8_5

5. Testing and Debugging

Michael Paluszek1   and Stephanie Thomas2
Princeton, NJ, USA
Princeton Junction, NJ, USA

The MATLAB unit test framework now allows you to incorporate testing into your MATLAB software just as you would your C++ or Java packages. Since entire textbooks have been written on testing methodologies, we will limit ourselves in this chapter to covering the mechanics of using the test framework itself. We also present a couple of recipes that are useful for debugging.

We should, however, say a few words about the goal of software testing. Testing should determine if your software functions as designed. ...

Get MATLAB Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.