Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Verification and Validation   

addItem - Class: ModelAdvisor.List
Package: ModelAdvisor

Add item to list

Syntax

addItem(element)

Description

addItem(element) adds items to the list created by the ModelAdvisor.List constructor.

Inputs

element

Specifies an element to be added to a list in one of the following:

  • Element

  • Cell array of elements. When you add a cell array to a list, they form different rows in the list.

  • String

Example

subList = ModelAdvisor.List();
setType(subList, 'numbered')
addItem(subList, ModelAdvisor.Text('Sub entry 1', {'pass','bold'}));
addItem(subList, ModelAdvisor.Text('Sub entry 2', {'pass','bold'}));

See Also

Customizing the Model Advisor — Describes how to create custom checks
  


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