Deleting rows and columns

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?

 Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Interpolation in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by