Deleting rows and columns

1 view (last 30 days)
Deepayan Bhadra
Deepayan Bhadra on 27 Apr 2014
Edited: Roberto on 27 Apr 2014
I have a 359x479 matrix. I want to down-sample it by removing every 2nd, 4th, so on... row and column. Which is the best method?

Accepted Answer

Roberto
Roberto on 27 Apr 2014
Edited: Roberto on 27 Apr 2014
try accessing x vector/matrix by index e.g.
x = x( 1:2:end , 1:2:end );

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!