why does ln not work

20 visualizzazioni (ultimi 30 giorni)
Jon Stapels
Jon Stapels il 3 Mar 2017
Modificato: Geoff Hayes il 3 Mar 2017
Can not get the ln command to work in MATLAB;
>> ln(2) Undefined function or variable 'ln'.
What am I doing wrong?

Risposte (1)

Geoff Hayes
Geoff Hayes il 3 Mar 2017
Modificato: Geoff Hayes il 3 Mar 2017
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