problem with matlab when executing the same program twice?
显示 更早的评论
i seem to be facing this weird problem when i try to run the same program in matlab, in succession. the first time i do it it gives me the answer within 30 seconds, and then when i try to run it again it just goes on and on. how is this possible? i have even used clear at the very top.
采纳的回答
更多回答(2 个)
Jan
2011-5-4
1 个投票
Use the command "profile" to see, where the time is lost in the 2nd run.
Robert Cumming
2011-5-5
0 个投票
are you using a mex function or a dll? If so it could be that one of those has a memory leak? Meaning that clear all is nto actually clearing everything...
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!