Why does this code not work?

1 次查看(过去 30 天)
Manohar Vohra
Manohar Vohra 2016-6-7
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.

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

类别

Help CenterFile Exchange 中查找有关 Introduction 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