User`s guide
Link to Requirements in MuPAD Notebooks
2-39
Link to Requirements in MuPAD Notebooks
This example shows how to create a link from a Simulink model to a MuPAD notebook.
You use a model that simulates a nonlinear second-order system with the van der Pol
equation.
Before beginning this example, create a MuPAD notebook with one or more link targets.
This example uses a MuPAD notebook that includes information about solving the van
der Pol equation symbolically and numerically.
Note: You must have the Symbolic Math Toolbox™ installed on your system to open a
MuPAD notebook. For information about creating or opening MuPAD notebooks, see
“Create MuPAD Notebooks” and “Open MuPAD Notebooks”.
1
Open an example model for the van der Pol equation:
vdp
2
Right-click a blank area of the model and select Requirements Traceability at
This Level > Open Link Editor.
You are adding the requirement to the model itself, not to a specific block in the
model.
3
Click New.
4
In the Document type drop-down list, select MuPAD Notebook.
5
When you browse and select a requirements document, the RMI stores the document
path as specified by the Document file reference option on the Requirements
Settings dialog box, Selection Linking tab.
For information about which setting to use for your working environment, see
“Document Path Storage” on page 5-15.
6
Click Browse to navigate to the notebook that you want to use.
Use a notebook that has link targets in it.
7
Make sure that the MuPAD notebook is in a saved state. Any link targets created
since the last save do not appear in the RMI document index.
8
To list the link targets, in the Requirements Traceability Link Editor, click the
Document Index tab.