convert integer formats in matlab
显示 更早的评论
Hi How can i show integer in scientific ? for example i want to show 120 like 1.2*10^2 i want to get 1.2 and 2 ??
回答(1 个)
Star Strider
2016-9-17
See if this does what you want:
x = 120;
out = [x*10^-floor(log10(x)) floor(log10(x))]
out =
1.2 2
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!