Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

  • 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'}));
Was this topic helpful?