I have matrix A, B, C, D
Show older comments

4 Comments
Rik
on 18 Aug 2022
Do you expect people to copy your data from a picture? You're asking people for help. You should make it as easy as you can for people to help you.
What determines that (1,15) should be selected from B and (1,9) from C? And how does that mean you need (15,1,9) from D? If you find (1,15) in B and (2,9) in C, should you select (15,1,9) or (15,2,9) from D?
jane
on 18 Aug 2022
Rik
on 18 Aug 2022
Unfortunately for you, that explanation doesn't help me.
I suspect the find function does everything you need. To give you a complete answer I need to understand better how exactly you want to process these arrays.
Rik
on 19 Aug 2022
Did you try to write any code? Did you read the two threads I linked in my initial comment?
Answers (0)
Categories
Find more on Shifting and Sorting Matrices 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!