Power conversion from mW to dBm?
9 次查看(过去 30 天)
显示 更早的评论
Determine the power of a signal in dBm if absolute value is 100mW. Code:
u=100mW;
10*log10(u)+30
Could someone show the correct code for this conversion?
0 个评论
回答(1 个)
Star Strider
2017-4-25
编辑:Star Strider
2017-4-25
An anonymous function version is:
dBm = @(mW) 10*log10(mW); % dBm As A Function Of Power In milliWatts
EDIT — Corrected units.
6 个评论
Star Strider
2017-4-26
Here ‘u’ is in W, according to the Wikipedia article.
My apologies for the delay — serious computer problems. Firefox no longer works on my Win 8.1 machine, and routinely crashes it, destroying my MATLAB configuration files as well.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!