(Not recommended) Insert backlinks in Microsoft Office documents
rmiref.insertRefs is not recommended. Use
inserts navigation backlinks in the active document of type
inserted] = rmiref.insertRefs(
type to match
objects that point from the document to the Simulink® model
model. You can use these backlinks to navigate from
the external document to the Simulink model. The function returns the number of links associated with the model, the
number of those links that also point to the external requirements document, and the number
of backlinks inserted in the requirements document. For more information, see Manage Navigation Backlinks in External Requirements Documents.
Insert Backlinks in Microsoft Word Document
This example shows how to insert backlinks in a Microsoft® Word document.
Open a model called
Open a Microsoft® Word document that contains requirements called
Insert navigation backlinks in the document for the model
myModel. Return the total number of links associated with the model,
the number of links that navigate to the document, and the number of links inserted in
[links,matches,inserted] = rmiref.insertRefs("myModel","word")
links = 16 matches = 8 inserted = 8
model — Name or handle of Simulink model
string scalar | character vector | model handle
Name or handle of a Simulink model, specified as a string scalar, character vector, or model handle.
type — External requirements document type
External requirements document type, specified as
links — Number of links associated with Simulink model
Number of links associated with the Simulink model, returned as a
matches — Number of links associated with external document
Number of links in the Simulink model that are associated with the external requirements document,
returned as a
inserted — Number of backlinks inserted in external document
Number of backlinks inserted in the external requirements document, returned as a
Version HistoryIntroduced in R2011a
R2022b: Not recommended
There are no plans to remove
rmiref.insertRefs. However, the
updateBacklinks method has these advantages over
rmiref.insertRefs and is recommended instead:
You can use
updateBacklinksto insert backlinks that correspond to links that are not associated with a model.
You can use
updateBacklinksto insert backlinks in documents in third-party tools other than Microsoft Word and Microsoft Excel®.