Azzera filtri
Azzera filtri

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

16 visualizzazioni (ultimi 30 giorni)
without using loops I have to extract odd columns and rows from an nxn matrix

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 15 Gen 2014
r= A(1:2:end,:)
c=A(:,1:2:end)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by