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!