Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

setRefLink - Class: ModelAdvisor.FormatTemplate
Package: ModelAdvisor

Add See Also section and links

Syntax

setRefLink(ft_obj, {{'standard'}})
setRefLink(ft_obj, {{'url', 'standard'}})

Description

setRefLink(ft_obj, {{'standard'}}) is an optional method that adds a See Also section above the table or list in the result. Use this method to add references to standards. ft_obj is a handle to a template object. standard is a cell array of strings that you want to display in the result. If you include more than one cell, the Model Advisor displays the strings in a bulleted list.

setRefLink(ft_obj, {{'url', 'standard'}}) generates a list of links in the See Also section. url is a string that indicates the location to link to. You must provide the full link including the protocol. For example, http:\\www.mathworks.com is a valid link, while www.mathworks.com is not a valid link. You can create a link to any protocol that is valid URL, such as a web site address, a full path to a file, or a relative path to a file.

Examples

Create a list object, ft, and add a related standard:

ft = ModelAdvisor.FormatTemplate('ListTemplate');
setRefLink(ft, {{'IEC 61508-3, Table A.3 (3) ''Language subset'''}});

Create a list object, ft, and add a list of related standards:

ft = ModelAdvisor.FormatTemplate('ListTemplate');
setRefLink(ft, {
    {'IEC 61508-3, Table A.3 (2) ''Strongly typed programming language'''},...
    {'IEC 61508-3, Table A.3 (3) ''Language subset'''}});

See Also

Customizing the Model Advisor — Describes how to create custom checks
Formatting Model Advisor Results — Describes how to format Model Advisor results
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS