inverse of log10

Is there a MATLAB command that is the inverse of log10?

Answers (2)

Wayne King
Wayne King on 15 May 2012
Just 10^(log10(x))
x = log10(1000);
10^x

1 Comment

x = log10([1 2 3 1000]);
10.^x %revised
ans = 1×4
1 2 3 1000
10^x %original
Error using ^
Incorrect dimensions for raising a matrix to a power. Check that the matrix is square and the power is a scalar. To operate on each element of the matrix individually, use POWER (.^) for elementwise power.

Sign in to comment.

Tags

Asked:

on 15 May 2012

Commented:

on 9 Nov 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!