while文から向けだせません

1 view (last 30 days)
Yuriko
Yuriko on 8 Dec 2020
Commented: Yuriko on 12 Dec 2020
添付のプログラムの1つめのwhile文から向け出せず.困っています.
  4 Comments
stozaki
stozaki on 11 Dec 2020
> 22行目のwhile文の条件(D<=0)がfalseになっても
どのように確かめられてますか? ブレークポイントを設定してみましたが、条件がfalseの場合はループには入りませんでした。
デバッグの方法は正しく出来ていますでしょうか? 下記リンクを参考に頂くと良いかと思います。
Yuriko
Yuriko on 12 Dec 2020
回答いただきありがとうございます.
Dはスカラを想定していたのですが,ベクトルになっていたのが原因のようです.

Sign in to comment.

Answers (0)

Categories

Find more on ループと条件付きステートメント in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!