Restart code or exit matlab
Ältere Kommentare anzeigen
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 Kommentare
Yixiang Guice
am 25 Nov. 2018
Mahi
am 25 Nov. 2018
I have already answered it. If it is correct then please upvote the answer.
Antworten (2)
Mahi
am 25 Nov. 2018
1 Stimme
If CODE here stands for a loop then please refer to the following link:
More infromation can be found here:
Hope this helps!
Thanks..
Walter Roberson
am 25 Nov. 2018
while true
inner loop stuff goes here
switch expression
case 'restart'
continue %while true loop
case 'terminate'
quit
end
end
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!