필터 지우기
필터 지우기

Can any one explain the returned value "9.4817e+03" .

조회 수: 368 (최근 30일)
mika
mika 2014년 5월 21일
댓글: John D'Errico 2022년 12월 24일
Can any one tell me what's the meaning of this value because it appears frequently in matlab, what's e and can i move from this representation of that value to another
shortestPathLength =
9.4817e+03
thank you
Help is much appreciated
  댓글 수: 2
SADAGOBAN A
SADAGOBAN A 2017년 3월 12일
in generally e+03 means exponential base 10,here e+03 means 1000 the value for 9.4817e+03 means 9.4817*1000 and the value is 9481.7 (Note:incase of e-03 means 1/1000=0.0001)
Tracie Lin
Tracie Lin 2019년 2월 5일
편집: Tracie Lin 2019년 2월 5일
Correction: e-03 = 1/1000 = 0.001

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

채택된 답변

Image Analyst
Image Analyst 2014년 5월 21일
It's 9.4817 times 10 to the 3rd power, 9.4817 * 10^03 = 9481.7.
  댓글 수: 3
Image Analyst
Image Analyst 2014년 5월 21일
편집: Image Analyst 2014년 5월 21일
By the way, the "e" stands for "exponent", which means the exponent of ten that it is.
Mahdi
Mahdi 2014년 5월 21일
You can also change the way the numbers are shown by using format. For example:
format long

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

추가 답변 (1개)

GOHIL NIHAR AJITBHAI
GOHIL NIHAR AJITBHAI 2022년 12월 24일
how to write 1x10^(-2.3) or 1.e(-2.3)in matlab ?
  댓글 수: 1
John D'Errico
John D'Errico 2022년 12월 24일
Please don't ask a question in an answer to another question. Learn to ask a question instead, as a separate question.
What you need to understand is that 10^(-2.3) is not written as you seem to think it is. You cannot use the e notation to write that number.
format long g
10^-2.3
ans =
0.00501187233627272
Note that I do not need to use parens around the exponent, but sometimes it can be safer, in case you are not sure. So I could have written
10^(-2.3)
ans =
0.00501187233627272
In either case, you need to see that raising 10 to a fractional power is not the same thing as just shifting a decimal place, AND you cannot put a decimal point in the exponent. So this next is invalid syntax in MATLAB:
1e-2.3
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parentheses.

Error in connector.internal.fevalMatlab

Error in connector.internal.fevalJSON
You need to use one of the two forms I showed first.

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by