I would like to mark the outside by marking the angle and radius as a single point on the complex plane consisting of the real axis and the imaginary axis.
I defined the angle and radius, but I can't see the picture. What should I do?
The angles are 10 degrees apart, and the radius taken by them is different.

댓글 수: 2

Jan
Jan 2021년 12월 25일
I do not understand the question. You want to marke the outside of what? What does "marking the angle and radius as a single point" mean? You can't see of the picture of what?
rimi
rimi 2021년 12월 27일
I'm sorry for my poor English. Thank you for leaving comments.
I want to show the angle and radius on the complex plane.
For example, I would like to draw a number such as 1.5cm in radius at 10 degrees, 1.3cm in radius at 20 degrees, and 1.0 in radius at 30 degrees on a complex plane.

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

 채택된 답변

Simon Chan
Simon Chan 2021년 12월 27일

0 개 추천

Something like this?
rho = [1.5 1.3 1.0];
theta = [10 20 30];
Z = rho.*exp(deg2rad(theta).*1i);
polarplot(Z,'*')

댓글 수: 1

rimi
rimi 2021년 12월 27일
Yes! That's what I wanted. I think I typed the wrong code in the part that defines Z. Thank you so much for answering. Happy New Year!

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

추가 답변 (1개)

Voss
Voss 2021년 12월 26일
Like this?
theta = 0:10:360;
r = linspace(1,2,numel(theta));
x = r.*cosd(theta);
y = r.*sind(theta);
figure()
plot(x,y)
Or perhaps this?
figure()
plot(x,y,'o')

댓글 수: 2

rimi
rimi 2021년 12월 27일
Thank you for your answer. But I'm curious about how to place the angle and radius on the complex plane.
theta = 0:10:360;
r = linspace(1,2,numel(theta));
polarplot( deg2rad(theta), r)

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

질문:

2021년 12월 24일

댓글:

2021년 12월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by