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

답변 (2개)

Honglei Chen
Honglei Chen 2012년 5월 15일

3 개 추천

a = 10;
b = log10(a);
c = 10^b
Wayne King
Wayne King 2012년 5월 15일

1 개 추천

Just 10^(log10(x))
x = log10(1000);
10^x

댓글 수: 1

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Simulink Real-Time에 대해 자세히 알아보기

태그

질문:

2012년 5월 15일

댓글:

2023년 11월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by