User`s guide

8 MATLAB Code Traceability
8-2
Link Between MATLAB Code Lines and Requirements Information in
External Documents
In this section...
“Create Link Using Context Menu Shortcuts” on page 8-2
“Create Link Using Link Editor” on page 8-2
Create Link Using Context Menu Shortcuts
To create requirements traceability links from MATLAB code lines to selections in
Microsoft Word, Microsoft Excel, or IBM Rational DOORS documents, you can use
shortcuts in the Requirements Traceability context menu.
1
In your requirements document, select the target for the traceability link that you
want to create.
2
In the MATLAB Editor, select the line or lines of code that you want to link.
3
In the MATLAB Editor, right-click your selection.
4
From the context menu, select Requirements Traceability. Depending on the type
of your requirements document, select one of the following options:
Link to Selection in Word
Link to Selection in Excel
Link to Selection in DOORS
The software creates a traceability link from the selected MATLAB code range to the
selection in the requirements document. It also inserts a navigation object for the
selection in the requirements document. The navigation object links to the selected
MATLAB code range.
Create Link Using Link Editor
You can create, edit, and delete traceability links with the Link Editor. To open the Link
Editor:
In the MATLAB Editor, select the line or lines of code that you want to link.
Right-click your selection.