problem with matlab when executing the same program twice?
6 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Jason Ross
2011-5-4
Are you exhausting some resource the first time through that prevents the second run from using them? Examples might include but are not limited to memory, disk space, network connections, file handles, serial connections or communications ports.
Without more specifics (profiler output, what you are doing, example code, OS, version) it's very difficult to say where the problem may lie.
Also, does it go away when you restart MATLAB? When you restart the machine?
5 个评论
Johnathan Faria
2021-1-18
Hi guys, I'm with the same issue, I'm working with a Kalman Filter code and i just can run the code once, I've tried the things above, but didnt worked!
更多回答(2 个)
Robert Cumming
2011-5-5
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...
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!