Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

rmiref.insertRefs

Insert links to models into requirements documents

Syntax

[total_links, total_matches, total_inserted] = rmiref.insertRefs(model_name, doc_type)

Description

[total_links, total_matches, total_inserted] = rmiref.insertRefs(model_name, doc_type) inserts ActiveX® controls into the open, active requirements document of type doc_type. These controls correspond to links from model_name to the document. With these controls, you can navigate from the requirements document to the model.

Input Arguments

model_name

Name or handle of a Simulink® model

doc_type

A character vector that indicates the requirements document type:

  • 'word'

  • 'excel'

Examples

Remove the links in an example requirements document, and then reinsert them:

  1. Open the example model:

  2. Open the example requirements document:

    open([matlabroot strcat('/toolbox/slvnv/rmidemos/fuelsys_req_docs/',...
    	'slvnvdemo_FuelSys_DesignDescription.docx')])
    
  3. Remove the links from the requirements document:

    rmiref.removeRefs('word')
  4. Enter y to confirm the removal.

  5. Reinsert the links from the requirements document to the model:

    [total_links, total_matches, total_inserted] = ...
    	rmiref.insertRefs(gcs, 'word')

Introduced in R2011a

Was this topic helpful?