loop for extracting columns of a matrix
4 views (last 30 days)
Show older comments
Commented: Pedro Roda Navarro on 21 Apr 2015
I would like to know how to do a loop to extract all the columns from a matrix and generate individual vectors
Thanks to all
Chris McComb on 21 Apr 2015
If you have a matrix, M, you can access column i (as a vector) by using M(:, i).
(The colon indicates 'every row')
Find more on Loops and Conditional Statements 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!