Main Content

setListObj

Add list of hyperlinks to model objects in Model Advisor analysis results

Description

setListObj(ftObj,modelObj) is an optional method that generates a bulleted list of hyperlinks to model objects in the report created by the Model Advisor formatting object ftObj. The modelObj input specifies the list items as a cell array of handles or full paths to blocks or model objects.

example

Examples

collapse all

This example shows how to add a bulleted list of hyperlinks in Model Advisor results.

Create a formatting template object.

ft = ModelAdvisor.FormatTemplate("ListTemplate");

Open the example model vdp.

openExample("vdp");
ans = logical
   1

Find all block paths in the vdp model.

allBlocks = find_system("vdp");

Add the block paths to the list template object as hyperlinks.

setListObj(ft,allBlocks);

Input Arguments

collapse all

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

Model objects to display as a bulleted list of hyperlinks, specified as a cell array of block handles, full path names (character vectors), or model object handles. The order of the items in the cell array determines the order in which the hyperlinks appear in the list.

Example: {"vdp/Gain","vdp/Sum"}

Version History

Introduced in R2009a