Why does this code not work?

6 Ansichten (letzte 30 Tage)
Manohar Vohra
Manohar Vohra am 7 Jun. 2016
Kommentiert: Azzi Abdelmalek am 8 Jun. 2016
Hey, can anyone tell me why does this happen.
Note: I used many variables because I am using this for a GUI.
  1 Kommentar
Azzi Abdelmalek
Azzi Abdelmalek am 8 Jun. 2016
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.

Melden Sie sich an, um zu kommentieren.

Antworten (2)

Steven Lord
Steven Lord am 7 Jun. 2016
Floating point arithmetic. See question 1 in the Math/Algorithms section of the FAQ.
  1 Kommentar
Manohar Vohra
Manohar Vohra am 7 Jun. 2016
Can you tell me a solution to this?

Melden Sie sich an, um zu kommentieren.


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

Kategorien

Mehr zu Variables finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by