Rotate Individual Letters in a String
Afficher commentaires plus anciens
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!
Réponse acceptée
Plus de réponses (3)
Dima
le 23 Jan 2012
Dima
le 23 Jan 2012
4 commentaires
Walter Roberson
le 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
le 23 Jan 2012
Walter Roberson
le 23 Jan 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Dima
le 24 Jan 2012
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!