How can I jump from line 8 to line 2?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Febin Benjamin
am 30 Jun. 2014
Kommentiert: Febin Benjamin
am 30 Jun. 2014
As there is no native 'goto' function in matlab plus the function provided in file exchange is not working, I am stuck here. I dont know how to jump from line 8 to line 2. That jump is required for my program to continue. Please Help.
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 30 Jun. 2014
Bearbeitet: Mischa Kim
am 30 Jun. 2014
Hello Febin, you could use something like:
exitFLAG = 0;
while ~exitFLAG
...
if
...
exitFLAG = 1;
else
exitFLAG = 0;
end
end
The loop is executed until the if-condition is true and the exitFLAG is set to 1.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!