The natural logarithm of the argument. |
||
Syntax |
l = Log(m) |
|
Argument |
Name |
Description |
m |
A scalar, vector or a matrix. |
|
Output |
Name |
Description |
l |
The natural logarithm of each entry. |
|
Example |
Find the natural logarithm of elements in a matrix: |
|
Syntax |
||
L = Log([1,2;3,4]) |
||
Result |
||
L = 0.0 0.693 1.099 1.386 |
||
Comments |
The argument values must be non-zero. For negative inputs, the output is complex. |
|
See Also: |