Rotate Individual Letters in a String
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (3)
Dima
el 23 de En. de 2012
Dima
el 23 de En. de 2012
4 comentarios
Walter Roberson
el 23 de En. de 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
el 23 de En. de 2012
Walter Roberson
el 23 de En. de 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Dima
el 24 de En. de 2012
Categorías
Más información sobre Characters and Strings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!