필터 지우기
필터 지우기

how to split a number?

조회 수: 1 (최근 30일)
Paromita Bhattacharjee
Paromita Bhattacharjee 2015년 8월 30일
댓글: Walter Roberson 2015년 8월 30일
I have a number a=2.3*10^5, I want to separate 2.3 and 10^5 as two different data value. How do I do it? please help

채택된 답변

Stephen23
Stephen23 2015년 8월 30일
>> x = 2.3*10^5;
>> y = 10^floor(log10(x))
y =
100000
>> z = x/y
z =
2.3
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 8월 30일
Watch out for negative numbers and watch out for 0.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by