joining of 2 matricces
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Yawar Rehman
el 5 de Sept. de 2014
A = ['dog '; 'cat '; 'cow '];
B = [1 ; 2 ; 3]; B = num2str(B);
comb = [A B]
1 comentario
pradeep kumar
el 5 de Sept. de 2014
Categorías
Más información sobre Performance and Memory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!