Incorrect behavior of str2num?
古いコメントを表示
Hi,
This seems not to work as intended:
>> str2num('"Y"')
ans =
"Y"
This should return an empty array.
5 件のコメント
dpb
2020 年 5 月 13 日
Can't reproduce that here w/ R2019b. Which release?
Tried clear str2num yet first?
Arjan Lampe
2020 年 5 月 13 日
goerk
2020 年 5 月 13 日
I can reproduce the behaviour with R2017b.
Image Analyst
2020 年 5 月 13 日
編集済み: Image Analyst
2020 年 5 月 13 日
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
2020 年 5 月 13 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Calendar についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!