Member of the basic class.
c = reallog(a)
Computes the natural logarithm of the input elements. reallog is equivalent to log for positive real numbers but generates an error for negative real numbers.
| Name | Description |
| a | Specifies a scalar, vector, or matrix. |
| Name | Description |
| c | Returns the natural logarithm of the elements in a. c returns -Inf for all elements of a equal to zero. c is a matrix of the same size as a. |
A = [0.01:1:10]
C = reallog(A)