How can I get 2 signal differences in log scale?
조회 수: 5 (최근 30일)
이전 댓글 표시
Can anybody help me, please!! I have a problem, hope you can help me! I have 2 signals in logarithmic scale, their power levels are different. The plot is here: https://www.dropbox.com/s/17dkngq0a4dqzgc/plot.bmp
I need to subtract this 2 signals and get their power level differences in dB, for example, for 1K level difference is appx. 30 dB. All results I need to plot in log scale as well. I used 10^(db/20) to get them into power scale, but do not know how to get them back to dB scale. So, which command to choose to subtract them in log-scale??
Thank you in advance!!
댓글 수: 0
답변 (2개)
Iain
2013년 7월 4일
You can get the ratio between the power levels simply by taking dB1 - dB2. This is probably more sensible unless the numbers are very similar.
p1 = 10^(10*dB); % etc
dp = p1 - p2
ddB = 10*log10(dp); %
Thats to do it through power. For voltage or current:
i1 = 10^(20*dB1);
di = i1 - i2
ddB = 10*log10(di);
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!