为什么以下操作在 Matlab 中不起作用

Why won't the following operations work in Matlab

如果输入到 Matlab 脚本中,以下内容将被视为不可接受:

   i) 8.8*e-2  
   ii) 3.2e1.5 
   iii) 1.25e+005

但为什么 i)、ii) 和 iii) 不起作用? 是因为e没有定义吗?

我本以为i)的原因是因为不必要的*,但ii)或iii)中都没有*,我相信它们也是不可接受的。

我:

>> 8.8*e-2
Undefined function or variable 'e'. 

这是不言自明的;您要求与 * 运算符相乘。应该是8.8e-2


二:

 >> 3e1.5
 3e1.5
    ↑
Error: Unexpected MATLAB expression.

来自维基百科(强调我的):

Scientific notation (also referred to as scientific form or standard index form, or standard form in the UK) is a way of expressing numbers that are too big or too small to be conveniently written in decimal form. [...]

In scientific notation, all numbers are written in the form m × 10^n (m times ten raised to the power of n), where the exponent n is an integer, and the coefficient m is any real number.

您想使用

>> 3*10^1.5
ans =
   94.8683

iii:

>> 1.25e+005
ans =
      125000

有什么问题?


2 ARE acceptable: 6,10 and .0

你能澄清一下这个问题吗?好像不是科学记数法。

>> 6,10
ans =
     6
ans =
    10
>> .0
ans =
     0