|
"Thomas Khoo" <tamusi@gmail.com> wrote in message
<fbt0eh$1dj$1@fred.mathworks.com>...
> Hi its possible to input ln(x) into matlab and run?
Yes, all you have to do is start your session by
typing at the command line,
ln = @log;
After that, ln(x) will work at the command line
for that session. To get it to work within a program,
create a file named ln.m that contains
function thelog = ln(x)
thelog = log(x)
Sorry for the confusion; we thought you were asking
what Matlab's logarithm base e function is named (it is
named 'log'), when all along you were asking how to get the
specific name 'ln' to return logarithm base e.
|