How to convert number to text in thousand format?
2 次查看(过去 30 天)
显示 更早的评论
tt = strtrim( string(num2str( [2598.32 256 23125]', '%1.2f')))
tt =
3×1 string array
"2598.32"
"256.00"
"23125.00"
Want result to be
"2,598.32"
"256.00"
"23,125.00"
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
类别
在 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!