Rotate Individual Letters in a String
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Jan
le 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.
Plus de réponses (3)
Dima
le 23 Jan 2012
4 commentaires
Walter Roberson
le 23 Jan 2012
char() with multiple single-character arguments turns out to do vertical cat anyhow.
Voir également
Catégories
En savoir plus sur Cell Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!