construct a complex number using real part and abs data
3 ビュー (過去 30 日間)
古いコメントを表示
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)
0 件のコメント
回答 (1 件)
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?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!