I have matrix A, B, C, D

4 Comments

Rik
Rik on 18 Aug 2022
Have a read here and here. It will greatly improve your chances of getting an answer.
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
jane on 18 Aug 2022
look at the position of the row that is worth 0 in matrix A, the row that is worth 0 in matrix A will determine the next step. If the number 0 in matrix A is in row 2, then in matrix B the values in row 2 are paired with what column, as well as in matrix C row 2 is paired with what column.
Rik
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
Rik on 19 Aug 2022
Did you try to write any code? Did you read the two threads I linked in my initial comment?

Sign in to comment.

Answers (0)

Categories

Products

Release

R2021a

Asked:

on 18 Aug 2022

Commented:

Rik
on 19 Aug 2022

Community Treasure Hunt

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

Start Hunting!