how to represent ln in matlab?

조회 수: 137 (최근 30일)
faa nad
faa nad 2013년 1월 18일
댓글: Walter Roberson 2021년 12월 9일
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
Maryknoll Dsouza
Maryknoll Dsouza 2017년 2월 15일
Does not work
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