MATLAB: How do i extract values from a particular column of in a matrix.

columsmatrix

I start with A=magic(10) and I am trying to get all the values from the 5th column.

Best Answer

A(:,5)