convert integer formats in matlab

조회 수: 4 (최근 30일)
Alireza Lashgary
Alireza Lashgary 2016년 9월 17일
답변: Star Strider 2016년 9월 17일
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
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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by