Deleting rows and columns

1 vue (au cours des 30 derniers jours)
Deepayan Bhadra
Deepayan Bhadra le 27 Avr 2014
Modifié(e) : Roberto le 27 Avr 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?

Réponse acceptée

Roberto
Roberto le 27 Avr 2014
Modifié(e) : Roberto le 27 Avr 2014
try accessing x vector/matrix by index e.g.
x = x( 1:2:end , 1:2:end );

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by