Deleting rows and columns

1 Ansicht (letzte 30 Tage)
Deepayan Bhadra
Deepayan Bhadra am 27 Apr. 2014
Bearbeitet: Roberto am 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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by