log10Log of Base 10
log10(A)A should be a numeric array.A.A.log10(a) may be a complex number if a is complex or a negative real number.% Returning complex numbers.
log10([-inf rand + rand*i -rand])
% Returning real numbers.
log10([inf nan 0 rand])
ans =
Inf + 1.3644i 0.0067 + 0.3316i -0.1378 + 1.3644i
ans = 1e-1 ×
Inf NaN -Inf -8.1722