How to convert string to double with powers?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ocean Wan
el 9 de Nov. de 2017
Respondida: Walter Roberson
el 9 de Nov. de 2017
>> str2double('0.88D+02')
ans =
NaN
I want to convert string '0.88D+02' to double 88 or 0.88D+02. However, When I use the above codes, it returns Nan. It works when I use str2num, but the length is too short. I can't convert long decimal number.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!