This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Class: ModelAdvisor.FormatTemplate
Package: ModelAdvisor

Add list of hyperlinks to model objects


setListObj(ft_obj, {model_obj})


setListObj(ft_obj, {model_obj}) is an optional method that generates a bulleted list of hyperlinks to model objects. ft_obj is a handle to a list template object. model_obj is a cell array of handles or full paths to blocks, or model objects that the Model Advisor displays as a bulleted list of hyperlinks in the report.


Create a list object, ft, and add a list of the blocks found in the model:

ft = ModelAdvisor.FormatTemplate('ListTemplate');

% Find all the blocks in the system
allBlocks = find_system(system);

% Add the blocks to a list
setListObj(ft, allBlocks);