Réponses (2)

Wayne King
Wayne King le 15 Mai 2012

1 vote

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

1 commentaire

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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Real-Time dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by