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.
Note
setRefLink expects a cell array of cell arrays
for the second input. |
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
 | setRecAction (ModelAdvisor.FormatTemplate) | | setRetainSpaceReturn (ModelAdvisor.Text) |  |
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
Get this Simulink Kit