while converting any number to string with num2str() floating numbers aren't preserved.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Jos (10584)
2013-11-12
If you carefully read the help of num2str, you will see that you can use a second argument …
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!