Get Started with MATLAB Test
Since R2023a
MATLAB® Test™ provides tools for measuring, testing, and improving the quality of your MATLAB code. You can generate starter tests, tests from your command history, and equivalence tests for MATLAB Coder™ and MATLAB Compiler SDK™ artifacts. Also, you can use generative AI (with MATLAB Copilot) to create a suite of ready-to-use tests.
You can use the Code Quality Dashboard to examine code readiness and identify untested code paths using industry-standard code coverage metrics (condition, decision, and MC/DC). MATLAB Test Manager enables you to manage and execute test suites at scale and reduce test execution time by running only the tests impacted by recent code changes.
With MATLAB Test, you can trace and verify requirements (with Requirements Toolbox™) and ensure compliance in regulated applications requiring ISO® 26262 and IEC 61508standards (with IEC Certification Kit).
Tutorials
This tutorial shows how to use MATLAB® Test™ to verify a MATLAB algorithm.
Videos
What Is MATLAB Test?
Develop, manage, analyze, and test MATLAB applications using MATLAB
Test.
Visualize MATLAB Code Quality
Visualize and measure the quality of your MATLAB code using the MATLAB
Test
Code Quality Dashboard.
Measure Code Coverage in MATLAB
Measure how much of your MATLAB
Test application or algorithm is covered by testing.
Equivalence Testing for Code Integrity
Create and run equivalence tests that compare the results produced by your
MATLAB code with the results produced by code generated with MATLAB
Coder or MATLAB
Compiler SDK.