joining of 2 matricces
이전 댓글 표시
hellow everyone . i have 2 following matricces .Say A =['dog' ;'cat' ; 'cow'] . B= [1;2;3] . now i want to get a matrix C such that C=['dog' 1;'cat' 2;'cow' 3]. please help me out.
채택된 답변
추가 답변 (1개)
Yawar Rehman
2014년 9월 5일
A = ['dog '; 'cat '; 'cow '];
B = [1 ; 2 ; 3]; B = num2str(B);
comb = [A B]
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!