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

댓글 수: 1

Walter Roberson
Walter Roberson 2017년 5월 21일
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.

댓글을 달려면 로그인하십시오.

 채택된 답변

michio
michio 2017년 5월 21일
편집: michio 2017년 5월 21일

2 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 ループと条件付きステートメント에 대해 자세히 알아보기

제품

질문:

2017년 5월 21일

편집:

2017년 5월 21일

Community Treasure Hunt

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

Start Hunting!