Clear Filters
Clear Filters

inverse of log10

177 views (last 30 days)
Jerry Walker
Jerry Walker on 15 May 2012
Commented: Walter Roberson on 9 Nov 2023
Is there a MATLAB command that is the inverse of log10?

Answers (2)

Honglei Chen
Honglei Chen on 15 May 2012
a = 10;
b = log10(a);
c = 10^b

Wayne King
Wayne King on 15 May 2012
Just 10^(log10(x))
x = log10(1000);
10^x
  1 Comment
Walter Roberson
Walter Roberson on 9 Nov 2023
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.

Categories

Find more on Exponents and Logarithms in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!