The author should probably add a case where the first position of x does not contain the maximum column position.
9982 Solvers
Return the 3n+1 sequence for n
6222 Solvers
Project Euler: Problem 7, Nth prime
540 Solvers
388 Solvers
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!