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

3 views (last 30 days)
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!

Accepted Answer

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

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!