tic和toc组合
复制代码
1
2
3
4tic %代码块 toc %disp(['运行时间: ',num2str(toc)]);
- 1
- 2
- 3
- 4
etime()与clock组合
复制代码
1
2
3
4t1=clock; %代码块 t2=clock; etime(t2,t1)
- 1
- 2
- 3
- 4
cputime函数
复制代码
1
2
3t0=cputime %代码块 t1=cputime-t0
最后
以上就是灵巧雪糕最近收集整理的关于Matlab中计算程序显示运行时间的几种方法的全部内容,更多相关Matlab中计算程序显示运行时间内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复