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.
12492 Solvers
Find the peak 3n+1 sequence value
1121 Solvers
Convert Hard Drive marketing sizes to actual data sizes
61 Solvers
Find out missing number from a vector of 9 elements
246 Solvers
288 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!