log10

Computes the base-10 logarithm for each element of x.

Syntax

log10(x)

Inputs

x
Any valid matrix
Type: double | integer | char | string | logical | struct | cell
Dimension: matrix

Outputs

R
scalar | matrix

Examples

Basic scalar input:

log10(100)
R = 2

Basic matrix input:

log10([2,1.6])
R = [ 0.30103 0.20412 ]