Effacer les filtres
Effacer les filtres

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

38 vues (au cours des 30 derniers jours)
mark
mark le 15 Jan 2014
Commenté : Ren-Long Yang le 15 Août 2019
without using loops I have to extract odd columns and rows from an nxn matrix

Réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 15 Jan 2014
r= A(1:2:end,:)
c=A(:,1:2:end)

Catégories

En savoir plus sur Mathematics and Optimization dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by