Deleting rows and columns

1 visualización (últimos 30 días)
Deepayan Bhadra
Deepayan Bhadra el 27 de Abr. de 2014
Editada: Roberto el 27 de Abr. de 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?

Respuesta aceptada

Roberto
Roberto el 27 de Abr. de 2014
Editada: Roberto el 27 de Abr. de 2014
try accessing x vector/matrix by index e.g.
x = x( 1:2:end , 1:2:end );

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by