Clear Filters
Clear Filters

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

16 views (last 30 days)
without using loops I have to extract odd columns and rows from an nxn matrix

Answers (1)

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

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!