How do you extract even columns and even rows from an nxn matrix?

4 visualizaciones (últimos 30 días)
How do you extract even columns and even rows from an nxn matrix?
I have a matrix of 2574 x 5148 and I only need the even columns and even rows.
Thanks!

Respuesta aceptada

Walter Roberson
Walter Roberson el 20 de Sept. de 2017
YourMatrix(2:2:end, 2:2:end)

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by