Main Content

addItem

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.

  • Character vector

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'}));