|
|
|
| R2012a Documentation → Simulink Verification and Validation | |
Learn more about Simulink Verification and Validation |
|
| Contents | Index |
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 a MuPAD notebook, see Creating, Opening, and Saving MuPAD Notebooks. |
Open a demo model for the van der Pol equation:
vdp
Right-click a blank area of the model and select Requirements > Edit/Add Links.
You are adding the requirement to the model itself, not to a specific block in the model.
Click New.
In the Document type drop-down list, select MuPAD Notebook.
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 Resolving the Document Path.
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 dialog box, click the Document Index tab.
This figure shows two link targets.

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.
![]() | Linking to Requirements in Microsoft Excel Workbooks | Creating Requirements Reports | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |