Your solution is fastest so far.
Good job, Athi.
@Athi, your solution contains many "magic" constant variables that I don't know how you got.
William's solution is much easier to understood, although it is slower than yours.
Thanks li haitao.
405 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1492 Solvers
Back to basics 22 - Rotate a matrix
763 Solvers
Construct an index vector from two input vectors in vectorized fashion
175 Solvers
347 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!