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.

Answers (3)

the cyclist
the cyclist on 18 Jan 2013
Edited: the cyclist on 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 Comments

Does not work
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

Sign in to comment.

Categories

Asked:

on 18 Jan 2013

Commented:

on 9 Dec 2021

Community Treasure Hunt

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

Start Hunting!