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

23 次查看(过去 30 天)
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!

采纳的回答

Walter Roberson
Walter Roberson 2017-9-20
YourMatrix(2:2:end, 2:2:end)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by