This example shows how to create an options structure for a traceability matrix, then generate a matrix using those options.
Open the Requirements Definition for a Cruise Control Model project.
openProject("ShortestPath");
Create an options structure for a traceability matrix.
opts = slreq.getTraceabilityMatrixOptions;
Set the leftArtifacts and topArtifacts fields of opts. Enter a cell array containing the name of the artifacts that you want to use in your traceability matrix.