num2str default format
5 次查看(过去 30 天)
显示 更早的评论
I want to print multiple values using fprintf, but with the same number formatting as num2str. Is there a format string that will give the same behavior as num2str?
0 个评论
回答(2 个)
Walter Roberson
2020-5-4
no. num2str does a bunch of width calculations and chooses output format based on integer vs floating point
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!