Skip to Main Content Skip to Search
Product Documentation

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.

Input Arguments

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

Examples

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

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS