Rotate Individual Letters in a String
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Jan
il 24 Gen 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.
Più risposte (3)
Dima
il 23 Gen 2012
4 Commenti
Walter Roberson
il 23 Gen 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Vedere anche
Categorie
Scopri di più su Cell Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!