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!