str2num and commas
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
Krishna
el 3 de Oct. de 2011
0 votos
OK then I think str2double will solve your problem.
Categorías
Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!