matlab 如何统计计算时间 tic和toc指令

A=rand(100);

 tic; 

invA=inv(A); 

toc;

Elapsed time is 0.405422 seconds.

你可能感兴趣的:(matlab 如何统计计算时间 tic和toc指令)