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.
3160 Solvers
58 Solvers
Back to basics 16 - byte order
173 Solvers
245 Solvers
Elapsed time is -0.005204 seconds.
97 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!