필터 지우기
필터 지우기

what does x='1' mean

조회 수: 1 (최근 30일)
mariam moutaz
mariam moutaz 2021년 2월 25일
편집: mariam moutaz 2021년 2월 25일
x='1'
y='2'
disp(x+y)
why is the answer 99
  댓글 수: 2
Matt J
Matt J 2021년 2월 25일
Did you run the code? If so, you should be able to tell us what the answer is.
mariam moutaz
mariam moutaz 2021년 2월 25일
the answer is 99

댓글을 달려면 로그인하십시오.

채택된 답변

David Hill
David Hill 2021년 2월 25일
The + converts the characters into their double equivalent so they can be added.
double('1')+double('2');% = 99

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by