https://fr.mathworks.com/help/matlab-test/ref/matlab.buildtool.tasks.testtask.addgeneratedcodecoverage.html
matlab.buildtool.tasks.TestTask.addGeneratedCodeCoverage - Enable generated code coverage...
This MATLAB function enables task to produce the specified code coverage results for the generated C/C++ code in equivalence tests that the task runs.
generated codematlabbuildtooltasksenable
https://fr.mathworks.com/help/sltest/ref/matlab.buildtool.tasks.testtask.addmodelcoverage.html
matlab.buildtool.tasks.TestTask.addModelCoverage - Enable model coverage collection for TestTask...
This MATLAB function enables the test task specified by task to produce the coverage results in the specified model coverage results file.
matlabbuildtooltasksenablemodel