Arrange element according to its index
1 view (last 30 days)
Show older comments
Rendy Dalimunthe
on 2 Aug 2015
Commented: Rendy Dalimunthe
on 2 Aug 2015
Hi All,
Let's say we have arrays as follow: a=[3 4 5 6 7 9] b=[2 4 1 3 5 6]
in this case b acts as index of a. I want to form a new element x such that: x=[5 3 6 4 7 9] in which a is being arranged according to its index.
How can I do that? Appreciate your help.
0 Comments
Accepted Answer
More Answers (0)
See Also
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!