Main Content

setHyperlink

Set text as hyperlink in Model Advisor analysis results

Description

setHyperlink(textObj,url) creates a hyperlink on the text in textObj that points to the target web address or link in url.

Note

The setHyperlink function formats Model Advisor analysis results with Simulink® Check™. For more information, see Simulink Check.

For information on how to format text in MATLAB®, see Formatting Text.

example

Examples

collapse all

Create a text object with the display text.

t1 = ModelAdvisor.Text("MathWorks home page");

Set a hyperlink to the MathWorks website.

setHyperlink(t1,"https://www.mathworks.com");

Input Arguments

collapse all

Model Advisor result text, specified as a ModelAdvisor.Text object.

Target location, specified as a string scalar or character vector that contains the web address or link that you want the text to point to.

Version History

Introduced in R2007b