How can I delete multiple elements from an array?

6 次查看(过去 30 天)
Hi all,
Say I have an array that's really large, say, 1000 x 1000, and I want to look only at the 10th element of each row, and the 10th element of each column, which would produce a 100 x 100 array. How can I do this?
Cheers, Henry

采纳的回答

Star Strider
Star Strider 2015-5-26
This works:
A10 = A([1 10:10:end], [1 10:10:end]);
with ‘A’ being your (1000x1000) array.
  4 个评论
Henry Kricancic
Henry Kricancic 2015-5-26

Wow, you bloody beauty mate - thank you! Exactly what I needed :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by