MATLAB: I have a matrix of size 10*4, I want to read the matrix and after that want to read only second column, so can I get output like that?

matrix reading

Because for specific condition I need only second column values. Please help.

Best Answer

A=rand(10,4)
c2=A(:,2)