This should not work in general. It returns false-positive for consecutive 1 5 7 :-)
486 Solvers
620 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
268 Solvers
Piecewise linear interpolation
299 Solvers
158 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!