Q:

# What is the natural log in MATLAB?

A:

### Quick Answer

The natural logarithm function in MATLAB is log(). To calculate the natural logarithm of a scalar, vector or array, A, enter log(A). Log(A) calculates the natural logarithm of each element of A when A is a vector or array.

Continue Reading

## Keep Learning

### Full Answer

The natural logarithm has base e, which is approximately 2.718. Applying the log() function to a number, A, solves the equation e^x = A and returns the number x. The log() function returns real numbers for arguments that include real numbers greater than or equal to zero. Log() returns complex numbers for arguments that include complex numbers or real numbers less than zero.

Learn more about Algebra
Sources:

## Related Questions

• A: The "linspace" function in MATLAB creates a vector of values that are linearly spaced between two endpoints. The function requires two inputs for the endpo... Full Answer >
Filed Under:
• A: In math, the term log typically refers to a logarithmic function to the base of 10, while ln is the logarithmic function to the base of the constant e. Log... Full Answer >
Filed Under:
• A: The expression pi in MATLAB returns the floating point number closest in value to the fundamental constant pi, which is defined as the ratio of the circumf... Full Answer >
Filed Under:
• A: MATLAB is an interactive computing framework and programming language developed by MathWorks. Initially intended for matrix manipulation, it has expanded t... Full Answer >
Filed Under:
PEOPLE SEARCH FOR