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!