Why does this code not work?

1 回表示 (過去 30 日間)
Manohar Vohra
Manohar Vohra 2016 年 6 月 7 日
コメント済み: Azzi Abdelmalek 2016 年 6 月 8 日
Hey, can anyone tell me why does this happen.
Note: I used many variables because I am using this for a GUI.
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2016 年 6 月 8 日
The code doesn't work is not a clear question. If someone try to test your code, he must write all your code because it's posted as an image, you could just copy and paste your code as a text.

サインインしてコメントする。

回答 (2 件)

Steven Lord
Steven Lord 2016 年 6 月 7 日
Floating point arithmetic. See question 1 in the Math/Algorithms section of the FAQ.
  1 件のコメント
Manohar Vohra
Manohar Vohra 2016 年 6 月 7 日
Can you tell me a solution to this?

サインインしてコメントする。


Torsten
Torsten 2016 年 6 月 8 日
if abs(X-Y-Z) < 1e-9
disp ('C');
else
disp ('W');
end
Best wishes
Torsten.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by