while converting any number to string with num2str() floating numbers aren't preserved.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
sermet
el 12 de Nov. de 2013
Respondida: Jos (10584)
el 12 de Nov. de 2013
num=[ 37.864457850610869, 32.483394006948181; 37.855287875969367;32.455769007122299]
num=num2str(num)
num=[37.8645, 32.4834;37.8553, 32.4558] %string
%how can I preserve whole or particular floating numbers while converting to string
0 comentarios
Respuesta aceptada
Jos (10584)
el 12 de Nov. de 2013
If you carefully read the help of num2str, you will see that you can use a second argument …
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings 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!