why does ln not work

18 ビュー (過去 30 日間)
Jon Stapels
Jon Stapels 2017 年 3 月 3 日
編集済み: Geoff Hayes 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