User`s guide
8 MATLAB Code Traceability
8-6
Traceability for MATLAB Code Lines
In this section...
“Traceability Link Targets” on page 8-6
“Storage of Traceability Links” on page 8-6
“Limitations of MATLAB Code Traceability” on page 8-7
Traceability Link Targets
You can create MATLAB code traceability links for:
• Lines of MATLAB code in a standalone file.
• Lines of MATLAB code inside a MATLAB Function block.
You can create links from a line or lines of MATLAB code to:
• Objects in Simulink models.
• Targets in Microsoft Word or Microsoft Excel documents.
• Targets in IBM Rational DOORS databases.
• Targets in text, HTML, or PDF documents.
• HTTP URLs.
Bi-directional linking is supported for targets in MATLAB, Simulink, Microsoft Word,
Microsoft Excel, and IBM Rational DOORS. Bi-directional linking creates links to and
from the selected link destination. To enable bi-directional linking, in the Requirements
Settings dialog box, under the Selection Linking tab, select Modify destination for bi-
directional linking. For more information, see “Selection Linking Tab”.
You can also create links to MATLAB code lines from any external application that
supports HTTP navigation. For more information, see “Link from External Applications”.
Storage of Traceability Links
In a standalone MATLAB file, you can create, navigate, and delete traceability links
for lines of code without changing the MATLAB file. The Requirements Management
Interface stores requirements traceability data for a MATLAB file in a .req file with the
same name and location as the MATLAB file.