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.
4106 Solvers
623 Solvers
163 Solvers
351 Solvers
MATCH THE STRINGS (2 CHAR) very easy
250 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!