条件付きのループ処理について

Forを使用して連続処理を行う場合、条件に会う場合は処理を行い、条件に合わない場合は処理を行わずに次のループに飛ばしたいと考えています。whileとif文をつかってコード作製したところ上手く動きませんでした。ご教授お願いいたします。

1 Commento

Walter Roberson
Walter Roberson il 21 Mag 2017
Approximate translation:
When doing continuous processing using For, we want to process when we meet the condition, and if we do not match the condition we want to skip to the next loop without processing. I made code using while and if statements and it did not work well. Please teach me.

Accedi per commentare.

 Risposta accettata

michio
michio il 21 Mag 2017
Modificato: michio il 21 Mag 2017

2 voti

コードを見ない限りはなんとも言えませんが、、 continueステートメント 使ってみましたか?

Più risposte (0)

Categorie

Scopri di più su ループと条件付きステートメント in Centro assistenza e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!