FUNCTION REFERENCE
log
Natural logarithm.
Natural logarithm.
Syntax
log(X)Applies the natural log to each element.
Negative real input and complex input give the principal complex logarithm.
Example
log(1) % 0Example
log(-1) % 0 + 3.1416iDifferences from MATLAB: double, logical and char 2-D arrays only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.