Main Content

Collect Condition, Decision, and MC/DC Coverage for MATLAB Code

Measure condition, decision, and MC/DC coverage for MATLAB® code

Collect information about decision coverage, condition coverage, and modified condition/decision coverage (MC/DC) for your source code when you run tests with MATLAB Test™. View coverage results in reports or at the command line. For information about statement and function coverage, see Collect Statement and Function Coverage Metrics for MATLAB Source Code.


matlabtest.plugins.codecoverage.StandaloneReportFormat for standalone code coverage report (Since R2024a)
matlabtest.coder.plugins.GeneratedCodeCoveragePluginPlugin for code coverage information for generated C/C++ code equivalence tests (Since R2023a)


generateStandaloneReportGenerate standalone report from coverage results (Since R2024a)