フィルターのクリア

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 Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by