3d matrix element extraction
Show older comments
Given a 10x10x3 matrix, I would like to extract the 3rd dimension for the 5 specific rows and columns, for example:
row indices a=[1 3 5 7 9]
column indices b=[2 4 6 8 10]
And store the result in a 5x3 matrix. How can I achieve this?
1 Comment
Martin Siu
on 19 Nov 2016
Accepted Answer
More Answers (0)
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!