It's not clear how the output should be calculated
Not a general solution as X={4,6,8,...} are not on row 2.
Make the vector [1 2 3 4 5 6 7 8 9 10]
35613 Solvers
Which values occur exactly three times?
3818 Solvers
Project Euler: Problem 6, Natural numbers, squares and sums.
1019 Solvers
Check if number exists in vector
4478 Solvers
664 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!