Hi
How do i calculate this complex number to polar form?
z = (10<-50)*(-7+j10) / -12*e^-j45*(8-j12)

답변 (3개)

Ameer Hamza
Ameer Hamza 2020년 10월 20일

1 개 추천

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

which phase -all
/MATLAB/toolbox/ident/idobsolete/phase.m /MATLAB/toolbox/ident/ident/@iddata/phase.m % Shadowed iddata method
@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
PHASE Computes the phase of a complex vector PHI=phase(G) G is a complex-valued row vector and PHI is returned as its phase (in radians), with an effort made to keep it continuous over the pi-borders. Documentation for phase doc phase Other functions named phase iddata/phase

댓글을 달려면 로그인하십시오.

Steven Lord
Steven Lord 2020년 10월 20일

1 개 추천

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.
Udhayaraj
Udhayaraj 2024년 9월 24일

0 개 추천

- 6 pi j cartesian to polar form

댓글 수: 2

Udhayaraj
Udhayaraj 2024년 9월 24일
can i know how to do
Torsten
Torsten 2024년 9월 24일
Compute the x and y coordinate of -6*pi*1i and use cart2pol(x,y) as suggested.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

질문:

2020년 10월 20일

댓글:

2024년 9월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by