MATLAB对函数做评估
生活随笔
收集整理的這篇文章主要介紹了
MATLAB对函数做评估
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.使用profile
profile,Longman 給出的解釋是:a short description that gives importantdetails about a person, a group of people, or a place。
MATLAB中內置了一個叫做profile的工具,來協(xié)助評估程序,也就是對程序運行過程的一個shortdescription吧。主要命令有:
profile on 開啟
profile off 關閉
profile clear 清空數據
profile viewer 在profiler中看結果
下面我們評估一下下面這個函數:
總結
以上是生活随笔為你收集整理的MATLAB对函数做评估的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Top K算法问题的实现
- 下一篇: MATLAB自定义函数及局部变量