About 3 significant digit?
显示 更早的评论
How do i present the output in 3 significant digit?
2 个评论
Walter Roberson
2021-9-11
See also compose()
回答(1 个)
fprintf('%.3g\n', pi)
fprintf('%.3g\n', pi * 1e6)
fprintf('%.3g\n', pi * 1e-6)
类别
在 帮助中心 和 File Exchange 中查找有关 System Composer 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!