Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法matlab(即函数)来检查你的程序完成运行需要多长时间?
matlab
谢谢。
尝试在打开探查器的情况下运行它,您将获得代码性能的细分,因此您可以轻松判断哪些区域花费的时间最长....对不起,误读了问题...是的,tic-toc 会做到的!
是的。tic和toc:
tic; # your code.... elapsed_time = toc;