Converting magnitude (dB) and phase (deg) to complex value

133 次查看(过去 30 天)
Let's assume I have magnitude value in dB and phase in degrees. How to change those to a complex number in Matlab?

采纳的回答

Star Strider
Star Strider 2021-2-19
编辑:Star Strider 2021-2-19
Try this:
complexVector = [10.^(mag_dB/20) .* exp(1j*deg2rad(phase_degrees))]
or as an anonymous function:
complexVector = @(mag_dB,phase_degrees) [10.^(mag_dB/20) .* exp(1j*deg2rad(phase_degrees))]
Out = complexVector(mag_dB,phase_degrees)
also demonstrating how to call it.
EDIT — (19 Feb 2021 at 23:06)
Corrected typographical error.
  8 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Encryption / Cryptography 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by