Rotate Individual Letters in a String
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Jan
2012-1-24
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.
更多回答(3 个)
Dima
2012-1-23
4 个评论
Walter Roberson
2012-1-23
char() with multiple single-character arguments turns out to do vertical cat anyhow.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!