Need help with a long while loop
显示 更早的评论
Hi!
Im currently doing my uni thesis about simulation of photovoltaic installations with Matlab. I have this huge while loop where I have a menu function inside. This loop break when you ONLY choose the last 2 option who put the variable exit=1, and my while is while exit==0.
So, the thing is when i tried to add a .mat archive (50x40 double) the menu closes by pressing any button.
I already have 400 lines of code inside the while, i dont know if this is too heavy for Matlab or what. I dont have any idea of computing tough.
If i delete the line which load the archive -> load('archive'); the problem is solved and my menu reopen when it finishes the chosen option.
Any help is welcome. Thank you!
PD: 100% is not a code error, it has to be a memory problem or something i dont understand yet.

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!