how to combine two matrices in a specific order
Afficher commentaires plus anciens
I have two matrices one is 1*3 and the other is 3*1 and i want to combine them in a 3*2 matrix. how to do it?
Réponses (2)
KL
le 12 Oct 2017
result = [matrix_1' matrix_2];
Andrei Bobrov
le 12 Oct 2017
a = 1:3;
b = (5:7)';
out = [a(:),b(:)];
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!