MATLAB Functions Help Desk

log10

Purpose

Common (base 10) logarithm

Syntax

Description

The log10 function operates element-by-element on arrays. Its domain includes complex numbers, which may lead to unexpected results if used unintentionally.

Y = log10(X) returns the base 10 logarithm of the elements of X.

Examples

On a computer with IEEE arithmetic

and

See Also

exp         Exponential

log         Natural logarithm

log2        Base 2 logarithm and dissect floating-point numbers into exponent and mantissa

logm        Matrix logarithm



[ Previous | Help Desk | Next ]