メインコンテンツ

setRetainSpaceReturn

Preserve spaces and line breaks in Model Advisor analysis results

Description

setRetainSpaceReturn(textObj,srmode) specifies whether the text in textObj retains spaces and carriage returns, based on the value of srmode.

Note

The setRetainSpaceReturn function formats Model Advisor analysis results with Simulink® Check™. For more information, see Simulink Check.

For information on how to format text in MATLAB®, see Formatting Text.

example

Examples

collapse all

Create a Model Advisor text object with some sample text.

t1 = ModelAdvisor.Text("MathWorks home page");

Specify to preserve any spaces and line breaks in the text.

setRetainSpaceReturn(t1,true);

Input Arguments

collapse all

Text for the Model Advisor output, returned as a ModelAdvisor.Text object.

Spaces and line breaks setting, specified as a numeric or logical 1(true) or 0(false). If srmode is 1(true), the spaces and carriage returns in the text from textObj are retained. If srmode is 0(false), they are not.

Data Types: logical

Version History

Introduced in R2007b