why does ln not work

20 次查看(过去 30 天)
Jon Stapels
Jon Stapels 2017-3-3
Can not get the ln command to work in MATLAB;
>> ln(2) Undefined function or variable 'ln'.
What am I doing wrong?

回答(1 个)

Geoff Hayes
Geoff Hayes 2017-3-3
编辑:Geoff Hayes 2017-3-3
Jon - use log for the natural logarithm.
>> log(2)
ln is not a built-in MATLAB function (or rather it is but for MuPAD - see MuPAD ln for details).

Community Treasure Hunt

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

Start Hunting!

Translated by