Incorrect behavior of str2num?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Arjan Lampe
am 13 Mai 2020
Kommentiert: Arjan Lampe
am 13 Mai 2020
Hi,
This seems not to work as intended:
>> str2num('"Y"')
ans =
"Y"
This should return an empty array.
5 Kommentare
Image Analyst
am 13 Mai 2020
Bearbeitet: Image Analyst
am 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?
Akzeptierte Antwort
Fangjun Jiang
am 13 Mai 2020
Seems that way.
>> version
ans =
'9.5.0.1298439 (R2018b) Update 7'
>> str2num('"Y"')
ans =
"Y"
>> version
ans =
'9.7.0.1319299 (R2019b) Update 5'
>> str2num('"Y"')
ans =
[]
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!