Rotate Individual Letters in a String
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Jan
am 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.
Weitere Antworten (3)
Dima
am 23 Jan. 2012
4 Kommentare
Walter Roberson
am 23 Jan. 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!