필터 지우기
필터 지우기

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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by