if condition equal many variables
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Physics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!