How can I measure the time used by Matlab in the execution of some commands? I am looking for something like linux time command, which returns the actual CPU used (
time
For a simple clock time solution, use tic and toc
tic
toc
profile provides a detailed report code per line, you can choose between cpu time and real time.
profile