Why can't I define text strings using pipes in MATLAB R2014b?

3 Ansichten (letzte 30 Tage)
Why can't I define text strings using pipes in MATLAB R2014b?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 7 Okt. 2014
Starting in MATLAB R2014b, do not use the vertical slash character, |, to separate text strings. MATLAB interprets the vertical slash character literally and not as a delimiter. For example, this code displays the entire set of strings at each position.
text([.1 .3 .7],[.5 .7 .9],'text1|text2|text3');
To define multiple strings, use a cell array.  
text([.1 .3 .7],[.5 .7 .9],{'text1','text2','text3'})

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by