Why does this code not work?

1 visualización (últimos 30 días)
Manohar Vohra
Manohar Vohra el 7 de Jun. de 2016
Comentada: Azzi Abdelmalek el 8 de Jun. de 2016
Hey, can anyone tell me why does this happen.
Note: I used many variables because I am using this for a GUI.
  1 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 8 de Jun. de 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.

Iniciar sesión para comentar.

Respuestas (2)

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

Iniciar sesión para comentar.


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

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by