It's not clear how the output should be calculated
Not a general solution as X={4,6,8,...} are not on row 2.
Find common elements in matrix rows
1232 Solvers
Getting the indices from a matrice
360 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
250 Solvers
345 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!