how do i write 20logbase10 in matlab

7 vues (au cours des 30 derniers jours)
seshi reddy
seshi reddy le 8 Juil 2014
Commenté : seshi reddy le 8 Juil 2014
log function in matlab

Réponse acceptée

Star Strider
Star Strider le 8 Juil 2014
You just did — almost.
x = 0.5;
dB = 20*log10(x);
produces:
dB =
-6.0206e+000
  8 commentaires
Star Strider
Star Strider le 8 Juil 2014
My pleasure!
You should have gotten the same result in your script as with the Command Window if you entered the same commands, unless you somehow implicitly converted a1 to double before you issued your Command Window call to log10. That’s the only way I can explain it.
No questions are stupid questions. No worries.
seshi reddy
seshi reddy le 8 Juil 2014
yeah got it thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by