What is the difference between 5 and '5'
이전 댓글 표시
5 + 1 = 6
'5' + 1 = 54
Why does the seceond line equal 54???
What does '' around numbers???
댓글 수: 2
Star Strider
2019년 8월 27일
To make things even more interesting:
"5" + 1 = "51"
Bruno Luong
2019년 8월 30일
Associativity warning
>> "5"+1+2
ans =
"512"
>> 1+2+"5"
ans =
"35"
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!