Clear Filters
Clear Filters

How to take a column of matrix and turn it into vector

2 views (last 30 days)
If I had a matrix [t,c] which is 100 by 5 column matrix and I want to extract the fifth column and turn it into a vector, how would I do this?

Accepted Answer

madhan ravi
madhan ravi on 26 Nov 2018
vector=matrix(:,5)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!