This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
10538 Solvers
826 Solvers
238 Solvers
Create a vector whose elements depend on the previous element
405 Solvers
140 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!