Conversion of a matrix into multiple column vectors
Afficher commentaires plus anciens
If we have a matrix A=[1 2 ; 3 4 ; 5 6] then it will be converted to vectors like x1= [1 3 5] x2= [2 4 6]
Réponse acceptée
Plus de réponses (1)
Giorgos Papakonstantinou
le 11 Mar 2015
Modifié(e) : Giorgos Papakonstantinou
le 11 Mar 2015
x1 = A(:,1).';
x2 = A(:,2).';
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!