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

3 vues (au cours des 30 derniers jours)
Miguel L
Miguel L le 20 Sep 2017
Commenté : Miguel L le 20 Sep 2017
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!

Réponse acceptée

Walter Roberson
Walter Roberson le 20 Sep 2017
YourMatrix(2:2:end, 2:2:end)

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by