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

matrixvector

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?

Best Answer

vector=matrix(:,5)