What is the difference between 5 and '5'
Mostrar comentarios más antiguos
5 + 1 = 6
'5' + 1 = 54
Why does the seceond line equal 54???
What does '' around numbers???
2 comentarios
Star Strider
el 27 de Ag. de 2019
To make things even more interesting:
"5" + 1 = "51"
Bruno Luong
el 30 de Ag. de 2019
Associativity warning
>> "5"+1+2
ans =
"512"
>> 1+2+"5"
ans =
"35"
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Simulink 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!