why does ln not work

20 vues (au cours des 30 derniers jours)
Jon Stapels
Jon Stapels le 3 Mar 2017
Modifié(e) : Geoff Hayes le 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?

Réponses (1)

Geoff Hayes
Geoff Hayes le 3 Mar 2017
Modifié(e) : Geoff Hayes le 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