Rotate Individual Letters in a String
이전 댓글 표시
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!
채택된 답변
추가 답변 (3개)
Dima
2012년 1월 23일
댓글 수: 4
Walter Roberson
2012년 1월 23일
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
2012년 1월 23일
Walter Roberson
2012년 1월 23일
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Dima
2012년 1월 24일
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!