Return to a for loop in the middle of code?
이전 댓글 표시
In the middle of my code, I have a little GUI that pops up asking for an input. Based on the number that is given, matrix manipulations are carried out. Once these lines of code are finished, I then want to return back to the same GUI, input a different number, which changes the matrices, and perform the same manipulations with this different data. How can I pop out of the program and return to a specific line in the middle of the program again?
Thanks!
채택된 답변
추가 답변 (1개)
Paulo Silva
2011년 3월 26일
while 1
%your code
%if the user presses cancel or something on the GUI that asks for input
%break
end
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!