Restart code or exit matlab
50 次查看(过去 30 天)
显示 更早的评论
Is there any way I can prompt the user to choose whether to restart the code or to exit Matlab.
The part where I need this code to work is after I print out the result using the switch case.
3 个评论
回答(2 个)
Mahi
2018-11-25
If CODE here stands for a loop then please refer to the following link:
More infromation can be found here:
Hope this helps!
Thanks..
0 个评论
Walter Roberson
2018-11-25
while true
inner loop stuff goes here
switch expression
case 'restart'
continue %while true loop
case 'terminate'
quit
end
end
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!