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.
First non-zero element in each column
603 Solvers
Back to basics 17 - white space
247 Solvers
37 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
325 Solvers
Longest run of consecutive numbers
1830 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!