how to represent ln in matlab?
조회 수: 137 (최근 30일)
이전 댓글 표시
Dear Sir,
I need to calculate 'log base e(ln)' in matlab.how to use it ?.
Thanks in advance.
댓글 수: 0
답변 (3개)
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
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
2021년 7월 25일
MATLAB statement to evaluate the expression (ln exp(2 + cosπ)): is
댓글 수: 1
Walter Roberson
2021년 7월 25일
편집: Walter Roberson
2021년 7월 25일
That sounds like a homework question.
Hints:
참고 항목
카테고리
Help Center 및 File Exchange에서 Exponents and Logarithms에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!