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.
Return the first and last characters of a character array
4006 Solvers
Rotate input square matrix 90 degrees CCW without rot90
393 Solvers
Getting the indices from a matrice
402 Solvers
230 Solvers
332 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!