Insert a line break in Mask-Editor / Parameters / Prompt

69 Ansichten (letzte 30 Tage)
JeJ
JeJ am 18 Mär. 2015
Beantwortet: umichguy84 am 30 Jan. 2018
Is it possible to insert a line break into the "prompt" field of the parameters pane of the mask editor?
I would like to use multiple lines of text preceding the variable field.

Antworten (1)

umichguy84
umichguy84 am 30 Jan. 2018
You can use the newline char '\n' with fprint or disp.
fprintf([ 'Line1Text ' '\n'...
'Line2Text ' '\n'...
'Line3Text ' ])
OR
disp([ 'Line1Text ' '\n'...
'Line2Text ' '\n'...
'Line3Text ' ])

Kategorien

Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by