It's not clear how the output should be calculated
Not a general solution as X={4,6,8,...} are not on row 2.
6283 Solvers
337 Solvers
Number of 1s in a binary string
2824 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
268 Solvers
530 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!