How to skip the following for loop
6 ビュー (過去 30 日間)
古いコメントを表示
When the condition of an if statement is met, it will do an assignment, and then it should skip the following for loop. If the condition of the if statement is not met, the program should then move into the for loop.
if(condition)
A=B;
Skip for loop.
end
for i=1:L
lines of code;
end
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2016 年 8 月 11 日
編集済み: Azzi Abdelmalek
2016 年 8 月 11 日
if(condition)
A=B;
else
for i=1:L
lines of code;
end
end
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!