how i can get the first and second letters in cell data
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohamuud hassan
le 16 Mai 2015
Modifié(e) : Stephen23
le 16 Mai 2015
hello all;
i want to get the first and second letters of each row
letters={'Aliadan';'FadumoHassan'; 'Buraaleabi';'kadradahir'};
so, how i can assign first charac of each row in one vector and the second character in each row in another vector.
0 commentaires
Réponse acceptée
Plus de réponses (2)
Purushottama Rao
le 16 Mai 2015
Modifié(e) : Purushottama Rao
le 16 Mai 2015
for k=1:4
f(k)=letters{k}(1);
end
for k=1:4
g(k)=letters{k}(2);
end
0 commentaires
Voir également
Catégories
En savoir plus sur Data Types 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!