Jumping over several loops
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I want to know how I can jump over several loops to the end of my code. or jump from one loop to another
if statement 1
action
else statement 2
if statement 3
action
else
statement 4
%jump to the end of the code, display 'answer'
if statement 5
%jump to statement 8
else statement 6
end
if statement 7
action
else statemment 8
end
end
end
answer
0 件のコメント
回答 (1 件)
ME
2020 年 2 月 25 日
There are a few ways of doing this. They have largely been covered in the below links:
0 件のコメント
参考
カテゴリ
Help Center および 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!