Main Content

ModelAdvisor.Paragraph Class

Namespace: ModelAdvisor
Superclasses:

Create and format paragraph

Description

The ModelAdvisor.Paragraph class creates and formats a paragraph object.

Creation

Description

para_obj = ModelAdvisor.Paragraph defines a paragraph object para_obj.

Methods

addItemAdd item to paragraph
setAlignSpecify paragraph alignment

Copy Semantics

Handle. To learn how this affects your use of the class, see Copying Objects in the MATLAB® Programming Fundamentals documentation.

Examples

To change default formatting, use the ModelAdvisor.Paragraph class. The default paragraph formatting is:

  • Empty

  • Default color (black)

  • Unformatted (not bold, italicized, underlined, linked, subscripted, or superscripted)

  • Aligned left

% Check Simulation optimization setting
ResultDescription = ModelAdvisor.Paragraph(['Check Simulation '...
'optimization settings:']);

You must handle paragraphs explicitly because most markup languages do not support line breaks.