Converting polar form complex numbers into rectangular form

조회 수: 280 (최근 30일)
Dalton Houghton-Schaffer
Dalton Houghton-Schaffer 2019년 9월 4일
댓글: Voss 2024년 4월 3일
I am having trouble converting polar form complex numbers into rectangular form by writing a MATLAB script file.
I'm not fimular with MATLAB keywords but need to use this to prove my answers.
Z = 0.5 angle( pi / 4 )
or
Z = 0.5 angle( - 45 degrees )
  댓글 수: 4
Rama
Rama 2024년 4월 3일
이동: Voss 2024년 4월 3일
Create the following two functions in MATLAB in order to easily convert between complex rectangular and polar forms. Test the functions by confirming that 3 + 5j  5.859
Voss
Voss 2024년 4월 3일
@Rama: To ask a new question, use this link:
Be sure not merely to post your homework assignment, but ask a specific question about what you are having trouble with and show any attempt you have made to solve it yourself.

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

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 9월 4일
편집: KALYAN ACHARJYA 2019년 9월 4일
"Converting polar form complex numbers into rectangular form"
z=0.5;theta=pi/4;
[X,Y]=pol2cart(theta,z)
Result:
X =
0.3536
Y =
0.3536
Manually:
data11.png

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by