MATLAB: Deleting rows and columns

matrixsample

I have a 359×479 matrix. I want to down-sample it by removing every 2nd, 4th, so on… row and column. Which is the best method?

Best Answer

try accessing x vector/matrix by index e.g.
x = x( 1:2:end , 1:2:end );