フィルターのクリア

How to convert from polar to complex

56 ビュー (過去 30 日間)
Sultan Khoja
Sultan Khoja 2018 年 11 月 11 日
回答済み: Dr. C V Chandrashekara 2020 年 11 月 5 日
How can I convert such as 5 at an angle of 120 to a complex number ( a+-bi)

採用された回答

madhan ravi
madhan ravi 2018 年 11 月 11 日
編集済み: madhan ravi 2018 年 11 月 11 日
5*exp(deg2rad(120)*i) %which is in eulers form r*e^(theta*i)
5 - radius
120 degrees converted to radians
  2 件のコメント
Sultan Khoja
Sultan Khoja 2018 年 11 月 11 日
I had done the traditional way of converting. the same way of yours a= 5*exp(i*120*pi/180); your code is more professional because you used the in-built function deg2rad.. thanks
madhan ravi
madhan ravi 2018 年 11 月 12 日
Anytime :)

サインインしてコメントする。

その他の回答 (1 件)

Dr. C V Chandrashekara
Dr. C V Chandrashekara 2020 年 11 月 5 日
thnak you

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by