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.
66 Solvers
Flip the main diagonal of a matrix
506 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
347 Solvers
3073 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!