How can I delete multiple elements from an array?
14 views (last 30 days)
Show older comments
Henry Kricancic
on 26 May 2015
Commented: Star Strider
on 27 May 2015
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
0 Comments
Accepted Answer
Star Strider
on 26 May 2015
This works:
A10 = A([1 10:10:end], [1 10:10:end]);
with ‘A’ being your (1000x1000) array.
4 Comments
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!