在Matlab中怎么表示自然对数?

2025-02-26 01:34:46
推荐回答(1个)
回答1:

>> log(10)

ans =

2.3026

>> log10(10)

ans =

1

>> help log
LOG Natural logarithm.
LOG(X) is the natural logarithm of the elements of X.
Complex results are produced if X is not positive.

See also log1p, log2, log10, exp, logm, reallog.

log 就是自然对数函数,如 log(10)
log10才是以10为底的。