Filter löschen
Filter löschen

how to represent ln in matlab?

139 Ansichten (letzte 30 Tage)
faa nad
faa nad am 18 Jan. 2013
Kommentiert: Walter Roberson am 9 Dez. 2021
Dear Sir,
I need to calculate 'log base e(ln)' in matlab.how to use it ?.
Thanks in advance.

Antworten (3)

the cyclist
the cyclist am 18 Jan. 2013
Bearbeitet: the cyclist am 18 Jan. 2013
The log() function is base-e log. So, to take log of x [mathematicians would usually say ln(x)], just do
>> log(x)
  2 Kommentare
Maryknoll Dsouza
Maryknoll Dsouza am 15 Feb. 2017
Does not work
Steven Lord
Steven Lord am 15 Feb. 2017
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

Melden Sie sich an, um zu kommentieren.


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

Lakshya Bhatra
Lakshya Bhatra am 9 Dez. 2021
ln^2(2)

Kategorien

Mehr zu Exponents and Logarithms finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by