how to represent ln in matlab?

139 次查看(过去 30 天)
faa nad
faa nad 2013-1-18
Dear Sir,
I need to calculate 'log base e(ln)' in matlab.how to use it ?.
Thanks in advance.

回答(3 个)

the cyclist
the cyclist 2013-1-18
编辑:the cyclist 2013-1-18
The log() function is base-e log. So, to take log of x [mathematicians would usually say ln(x)], just do
>> log(x)
  2 个评论
Steven Lord
Steven Lord 2017-2-15
Say more. Does it error (and if so what is the FULL text of the error message)? Does it issue a warning (ditto on the FULL message)? Does it give you a different answer than you expect?
Are you sure you haven't written your own log.m that's shadowing the log function built into MATLAB?
which -all log

请先登录,再进行评论。


omar alshowi
omar alshowi 2021-7-25
MATLAB statement to evaluate the expression (ln exp(2 + cosπ)): is

Lakshya Bhatra
Lakshya Bhatra 2021-12-9
ln^2(2)

类别

Help CenterFile Exchange 中查找有关 Exponents and Logarithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by