how to represent ln in matlab?
139 ビュー (過去 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!