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 日

1 投票

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).

質問済み:

2017 年 3 月 3 日

編集済み:

2017 年 3 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by