Coding for nested loop problem
古いコメントを表示
I want to run nested loop with two variables 'p' and 'q'
Outer loop is for 'p' and Inner loop is for 'q'
The problem is q should run for all values when ('q' not equal to 'p') and neglect the simulation of its contents when q=p
Is there any simple method to do this other than using "for loop"
2 件のコメント
Adam
2019 年 8 月 20 日
Just put an if condition in the nested loop with a
continue
statement in it.
Vinay Killamsetty
2019 年 8 月 20 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!