Complex number to polar form
539 ビュー (過去 30 日間)
古いコメントを表示
Hi
How do i calculate this complex number to polar form?
z = (10<-50)*(-7+j10) / -12*e^-j45*(8-j12)
0 件のコメント
回答 (2 件)
Ameer Hamza
2020 年 10 月 20 日
The number you wrote in not correct according to MATLAB syntax. You can use abs() and phase() to convert complex numbers to polar coordinate
z = 2 + 3j;
r = abs(z);
angle = phase(z);
1 件のコメント
Rik
2021 年 4 月 28 日
which phase -all
@Spencer Hurst Regarding your flag ("phase() must be out of date"): as you can see, there actually still is a phase function in Matlab. I would suggest using the angle function instead, as that is in the Matlab base instead of a separate toolbox.
%confirm it does what we think it does:
help phase
Steven Lord
2020 年 10 月 20 日
Use pol2cart and cart2pol to convert between the (r, theta) and (real, imag) representations of the complex numbers. Since I'm guessing your angles are in degrees you'll also need deg2rad and rad2deg.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!