Main Content

setRefLink

Add See Also section and links in Model Advisor analysis results

Description

setRefLink(ftObj,seeAlsoText) is an optional method to add a See Also section with references or links to the report created by the Model Advisor formatting object ftObj. The seeAlsoText input specifies the references as a cell array of cell arrays. If you provide multiple entries, the Model Advisor displays them as a bulleted list. For URL links, specify each entry as a cell array containing the full URL (including the protocol, such as https:) and the display text.

example

Examples

collapse all

This example shows how to add a See Also section with references and hyperlinks to relevant standards in your Model Advisor results.

Create a list template object.

ft = ModelAdvisor.FormatTemplate("ListTemplate");

To add reference to a multiple standards:

setRefLink(ft,{{"IEC 61508-3, Table A.3 (3)","Language subset"}});

To add reference to standards with hyperlinks:

setRefLink(ft,{ {"https://www.iso.org/standard/43464.html","ISO 26262"},{"https://www.misra.org.uk/","MISRA C"} });

Input Arguments

collapse all

ModelAdvisor.FormatTemplate object, specified as a handle to the formatting template.

Cell array of cell arrays, that describes the See Also references and links. The Model Advisor displays the See Also as a separate section below the list or table in the report.

Example: {{"IEC 61508-3, Table A.3 (3)","Language subset"}}

Version History

Introduced in R2009a