how do i write 20logbase10 in matlab
23 次查看(过去 30 天)
显示 更早的评论
log function in matlab
0 个评论
采纳的回答
Star Strider
2014-7-8
You just did — almost.
x = 0.5;
dB = 20*log10(x);
produces:
dB =
-6.0206e+000
8 个评论
Star Strider
2014-7-8
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!