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.
1316 Solvers
Convert a numerical matrix into a cell array of strings
471 Solvers
104 Solvers
Given a matrix, swap the 2nd & 3rd columns
535 Solvers
256 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!