Rotate Individual Letters in a String
Ältere Kommentare anzeigen
Hello! I wonder if there is a way to have the word SINE rotated 90% counter-clockwise and each of the letters 90% clockwise so that the letters stand normal on oneanother like:
E N I S
Thanks!
Akzeptierte Antwort
Weitere Antworten (3)
Dima
am 23 Jan. 2012
Dima
am 23 Jan. 2012
4 Kommentare
Walter Roberson
am 23 Jan. 2012
Your S1 assignment is the same as
S1 = 'SIN' .';
(No E because you did not include t4 in your char() call)
"help text" is more clear on the reason you are getting the error:
"If 'string' is an array the same number of rows as the
length of X and Y, TEXT marks each point with the corresponding row of the 'string' array."
Your array did not have the same number of rows as the length of x and y as you only passed one x and y each probably.
You will have to position the characters individually; text() does not have a mechanism to automatically position the characters in the manner you would like.
Dima
am 23 Jan. 2012
Walter Roberson
am 23 Jan. 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Dima
am 24 Jan. 2012
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!