Incorrect behavior of str2num?
Afficher commentaires plus anciens
Hi,
This seems not to work as intended:
>> str2num('"Y"')
ans =
"Y"
This should return an empty array.
5 commentaires
dpb
le 13 Mai 2020
Can't reproduce that here w/ R2019b. Which release?
Tried clear str2num yet first?
Arjan Lampe
le 13 Mai 2020
goerk
le 13 Mai 2020
I can reproduce the behaviour with R2017b.
Image Analyst
le 13 Mai 2020
Modifié(e) : Image Analyst
le 13 Mai 2020
In r2020a:
>> str2num('"Y"')
ans =
[]
as expected, since it's not a number. So the best answer is to upgrade. Can you do that? Are you on the maintenance plan?
Arjan Lampe
le 13 Mai 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!