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