if condition equal many variables
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Physics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!