using fprintf with scientific notation
显示 更早的评论
What commands can I use to get +1.01325E+05 and 3.381400e+01? I know it involves %E and %e but i don't know in what order i should use them in.
回答(1 个)
x = 101325;
y = 33.814;
fprintf('%+.5E',x)
fprintf('%+.6e',y)
类别
在 帮助中心 和 File Exchange 中查找有关 Language Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!