how to represent ln in matlab?

Dear Sir,
I need to calculate 'log base e(ln)' in matlab.how to use it ?.
Thanks in advance.

Respuestas (3)

the cyclist
the cyclist el 18 de En. de 2013
Editada: the cyclist el 18 de En. de 2013

2 votos

The log() function is base-e log. So, to take log of x [mathematicians would usually say ln(x)], just do
>> log(x)

2 comentarios

Maryknoll Dsouza
Maryknoll Dsouza el 15 de Feb. de 2017
Does not work
Steven Lord
Steven Lord el 15 de Feb. de 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

Iniciar sesión para comentar.

omar alshowi
omar alshowi el 25 de Jul. de 2021

0 votos

MATLAB statement to evaluate the expression (ln exp(2 + cosπ)): is

Categorías

Más información sobre Exponents and Logarithms en Centro de ayuda y File Exchange.

Preguntada:

el 18 de En. de 2013

Comentada:

el 9 de Dic. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by