MATLAB: Specific column range from an array

arraycolumn range

This is probably very dumb question but I cant seem to find an answer for it. I have an array with two columns, how to I extract let`s say the second column, from the 5th row until the 10th?

Best Answer

y = x(5:10, 2) % rows 5:10, column 2