Why does this code not work?

조회 수: 3 (최근 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 CenterFile Exchange에서 Variables에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by