how i can get the first and second letters in cell data
5 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
その他の回答 (2 件)
Purushottama Rao
2015 年 5 月 16 日
編集済み: Purushottama Rao
2015 年 5 月 16 日
for k=1:4
f(k)=letters{k}(1);
end
for k=1:4
g(k)=letters{k}(2);
end
0 件のコメント
参考
カテゴリ
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!