Conversion of a matrix into multiple column vectors
Show older comments
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]
Accepted Answer
More Answers (1)
Giorgos Papakonstantinou
on 11 Mar 2015
Edited: Giorgos Papakonstantinou
on 11 Mar 2015
x1 = A(:,1).';
x2 = A(:,2).';
Categories
Find more on Hypothesis Tests 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!