Hauptinhalt

ModelAdvisor.Paragraph

R2026b

Create and format paragraph and its content in Model Advisor results

Description

Use ModelAdvisor.Paragraph to create a paragraph object that can be added to the Model Advisor results for displaying formatted text or messages.

Creation

Description

paragraph = ModelAdvisor.Paragraph creates a paragraph object you can use to display results in Model Advisor.

example

Object Functions

addItemAdd content item to paragraph in Model Advisor analysis results
setAlignSpecify paragraph alignment in Model Advisor analysis results

Examples

collapse all

Create a paragraph to display results in Model Advisor, add content, and set alignment.

Create a ModelAdvisor.Paragraph object.

paragraph = ModelAdvisor.Paragraph;

Add text content to the paragraph.

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

Add multiple instructions at once, using an array.

addItem(paragraph,['Here is the list item.','First one is:']);

Center the paragraph horizontally.

setAlign(paragraph,"center");

Version History

Introduced in R2006b