필터 지우기
필터 지우기

Showing output result in polar coordinate

조회 수: 3 (최근 30일)
Shaukhin
Shaukhin 2022년 8월 22일
댓글: Shaukhin 2022년 8월 24일
When I solve 2 or more equations including complex coefficient(i), the result (root) is shown in rectangular coordinate system (a+bi) by default. But I need to show the result in polar coordinate system (r<θ)[< is used to mean angle sign). How to do this??

채택된 답변

Walter Roberson
Walter Roberson 2022년 8월 22일
MATLAB does not provide that as an output format. You will need to create your own function to display the data in the format you want.
If you were working with your own object class then you could build a custom format for it.
  댓글 수: 3
Steven Lord
Steven Lord 2022년 8월 22일
If all you want is to see the data in polar coordinates you could use cart2pol to calculate the coordinates.
x = 3+4i;
[theta, r] = cart2pol(real(x), imag(x))
theta = 0.9273
r = 5
[re, im] = pol2cart(theta, r)
re = 3.0000
im = 4.0000
Shaukhin
Shaukhin 2022년 8월 24일
thanks a lot

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by