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.
Least common multiple of many numbers
189 Solvers
Omit columns averages from a matrix
527 Solvers
Matrix which contains the values of an other matrix A at the given locations.
214 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3641 Solvers
219 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!