what does x='1' mean
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
mariam moutaz
le 25 Fév 2021
Modifié(e) : mariam moutaz
le 25 Fév 2021
x='1'
y='2'
disp(x+y)
why is the answer 99
2 commentaires
Matt J
le 25 Fév 2021
Did you run the code? If so, you should be able to tell us what the answer is.
Réponse acceptée
David Hill
le 25 Fév 2021
The + converts the characters into their double equivalent so they can be added.
double('1')+double('2');% = 99
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!