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.
Open an example model for the van der Pol equation:
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.
In the Document type drop-down
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.
Click Browse to navigate to the notebook that you want to use.
Use a notebook that has link targets in it.
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.
To list the link targets, in the Requirements Traceability Link Editor, click the Document Index tab.
This figure shows two link targets.
Note: These link targets are in a MuPAD notebook that was created for this example. The Document Index tab displays only link targets that you have created in your MuPAD notebook.
Select a link target name and click Apply.
The Requirements tab reopens, displaying the details of the newly created link. Unless you have previously entered a description, the link target name appears in the Description field.
To confirm that you created the link, right-click a blank area of the model and select Requirement. The new link is at the top of the submenu.