If your purpose is to compare the efficiency, I recommend you to use tic/toc or timeit instead of clock/etime. The clock function measures the operating system time which is less reliable as compared to tic/toc measurements.
Project Euler: Problem 8, Find largest product in a large string of numbers
329 Solvers
Matrix with different incremental runs
106 Solvers
Sum of diagonal of a square matrix
1333 Solvers
Compress strings (not springs)
103 Solvers
83 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!