Azzera filtri
Azzera filtri

Deleting rows and columns

1 visualizzazione (ultimi 30 giorni)
Deepayan Bhadra
Deepayan Bhadra il 27 Apr 2014
Modificato: Roberto il 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?

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 Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by