Main Content

addItem

R2026b

Add content item to paragraph in Model Advisor analysis results

Description

addItem(paragraph,item) appends a new content item, specified by item to the paragraph represented by paragraph.

example

Examples

collapse all

Add content to Model Advisor paragraph.

Create a ModelAdvisor.Paragraph object.

paragraph = ModelAdvisor.Paragraph;

Add text content to the paragraph.

addItem(paragraph,"This paragraph displays results");

Add multiple content items at once using an array.

addItem(paragraph,['Here are the results',{'resultText1','resultText2'}]);

Input Arguments

collapse all

Paragraph containing formatted text or messages in the Model Advisor results, specified as a ModelAdvisor.Paragraph object.

Content to append to a paragraph, specified as a character vector, cell array of character vectors, or a cell array of objects. The order of items in the cell array determines their sequence in the paragraph.

Example: {'resultText1','resultText2'}

Version History

Introduced in R2006b