construct a complex number using real part and abs data

조회 수: 3 (최근 30일)
Sajid Afaque
Sajid Afaque 2021년 7월 5일
답변: Yongjian Feng 2021년 7월 5일
i have real part and absolute values of a complex number.
is their any built in function to generate back the complex number using real part and absolute value of the complex number ?
or if built in function is not vailable can i use below code
imag_part = sqrt((abs_value)^2 - (real part)^2)
complex_numer = real part + i(imag_part)

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 7월 5일
This is really a math question. When you have the real part and the absolute value, the imaginary part is not determined in general. There are two possible solutions. Basically +/- sqrt((abs_value)^2-(real_part)^2), right?

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by