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 9, Pythagorean numbers
293 Solvers
Convert hex color specification to MATLAB RGB
143 Solvers
58 Solvers
171 Solvers
Gauss Eliminate 2-by-2 example
124 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!