フィルターのクリア

how to represent ln in matlab?

139 ビュー (過去 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)
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 12 月 9 日
log(2).^2
ans = 0.4805

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeExponents and Logarithms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by