Skip to Main Content Skip to Search
Product Documentation

Linking 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.

  1. Open a demo model for the van der Pol equation:

    vdp
  2. 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.

  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 Resolving the Document Path.

  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 dialog box, 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.

  9. 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.

  10. 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.

  


Related Products & Applications

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