Unit Testing C Code using MATLAB and MATLAB Coder

Example files for unit testing C code using MATLAB and MATLAB Coder
153 download
Aggiornato 4 ago 2016

Visualizza la licenza

Nota dell'editore: This file was selected as MATLAB Central Pick of the Week

This example shows how to:
1. Run unit tests on hand written C code using MATLAB and MATLAB Coder
2. Run unit tests on C code generated by MATLAB Coder
Run unit tests written in MATLAB on your hand written C code and check if changes to your C code results in any unit test failures. Use visualization and other tools available in MATLAB to understand how your code is behaving.
Also run unit tests with software-in-the-loop execution when using Embedded Coder with MATLAB Coder.

Cita come

Bill Chou (2026). Unit Testing C Code using MATLAB and MATLAB Coder (https://it.mathworks.com/matlabcentral/fileexchange/53634-unit-testing-c-code-using-matlab-and-matlab-coder), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Versione Pubblicato Note della release
1.1.0.0

Updated for R2016a. Includes a slight change to verifying that the sample error is within an absolute tolerance.