if condition equal many variables
Mostrar comentarios más antiguos
If 6==6==6
c=1
Else
c=0
end
When i type the above code i get c=0 but logically i should get c=6 As 6 is equal to 6. Where is my error and how could i rewrite the code?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Physics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!