I have 2 different signals on a Amp(dB) vs (Hz) obtained after fft of exp data.These signals are over the same freq range but have different amplitude values. How can i calculate the attenuation of one signal as compared to the other?
1 次查看(过去 30 天)
显示 更早的评论
I have 2 different signals on a Amplitude(dB) vs frequency(Hz) obtained after fft of experimental data.These signals are over the same freq range but have different amplitude values over the given frequency range. How can i calculate the attenuation of one signal as compared to the other? Also these are available on two different graphs.
0 个评论
回答(1 个)
Kaashyap Pappu
2020-1-23
Assuming the data is in a vector, you can use the findpeaks function to find the required peaks and their array indices. Given that the data is in the logarithmic scale, the difference in power values would be the attenuation required.
If you wish to visually observe the difference, plot both vectors on the same figure and assign different colors to each plot.
Hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!