Rotate Individual Letters in a String
4 views (last 30 days)
Show older comments
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!
0 Comments
Accepted Answer
Jan
on 24 Jan 2012
Does this help:
S = 'SINE';
C = cell(1, numel(S));
for i = 1:numel(S)
C{i} = S(i);
end
% >> C = {'E', 'N', 'I', 'S'}
text(0.5, 0.5, C);
? I'm still not sure, what you want to achieve.
More Answers (3)
Dima
on 23 Jan 2012
4 Comments
Walter Roberson
on 23 Jan 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
See Also
Categories
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!