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.


Class: ModelAdvisor.Text
Package: ModelAdvisor

Create Model Advisor text output


text = ModelAdvisor.Text(content, {attribute})


text = ModelAdvisor.Text(content, {attribute}) creates a text object for the Model Advisor output.

Input Arguments


Optional character vector specifying the content of the text object. If content is empty, empty text is output.


Optional cell array of character vectors specifying the formatting of the content. If no attribute is specified, the output text has default coloring with no formatting. Possible formatting options include:

  • 'normal' (default) — Text is default color and style.

  • 'bold' — Text is bold.

  • 'italic' — Text is italicized.

  • 'underline' — Text is underlined.

  • 'pass' — Text is green.

  • 'warn' — Text is yellow.

  • 'fail' — Text is red.

  • 'keyword' — Text is blue.

  • 'subscript' — Text is subscripted.

  • 'superscript' — Text is superscripted.

Output Arguments


The text object you create


text = ModelAdvisor.Text('Sub entry 1', {'pass','bold'})
Was this topic helpful?