Quantcast

Documentation Center

  • Trial Software
  • Product Updates

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.

  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.

    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.

Was this topic helpful?