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.
Four quadrant inverse tangent function.
43 Solvers
Back to basics 9 - Indexed References
397 Solvers
522 Solvers
404 Solvers
Magic is simple (for beginners)
3232 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!