Why can't I define text strings using pipes in MATLAB R2014b?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 7 Okt. 2014
Beantwortet: MathWorks Support Team
am 7 Okt. 2014
Why can't I define text strings using pipes in MATLAB R2014b?
Akzeptierte Antwort
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'})
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!