joining of 2 matricces
Show older comments
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.
Accepted Answer
More Answers (1)
Yawar Rehman
on 5 Sep 2014
A = ['dog '; 'cat '; 'cow '];
B = [1 ; 2 ; 3]; B = num2str(B);
comb = [A B]
1 Comment
pradeep kumar
on 5 Sep 2014
Categories
Find more on Performance and Memory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!