str2num and commas
古いコメントを表示
Hi. str2num doesn't seem to convert '20,000' to 20E3. Instead, it becomes a vector of 2 elements: 20 and 0. Is there a way around this or should I replace the comma in the string with '' before doing string2num? Thanks!
採用された回答
その他の回答 (1 件)
Krishna
2011 年 10 月 3 日
0 投票
OK then I think str2double will solve your problem.
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!