The angle and radius above the complex plane.

3 views (last 30 days)
rimi
rimi on 24 Dec 2021
Commented: rimi on 27 Dec 2021
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 Comments
rimi
rimi on 27 Dec 2021
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.

Sign in to comment.

Accepted Answer

Simon Chan
Simon Chan on 27 Dec 2021
Something like this?
rho = [1.5 1.3 1.0];
theta = [10 20 30];
Z = rho.*exp(deg2rad(theta).*1i);
polarplot(Z,'*')
  1 Comment
rimi
rimi on 27 Dec 2021
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!

Sign in to comment.

More Answers (1)

_
_ on 26 Dec 2021
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 Comments
Walter Roberson
Walter Roberson on 27 Dec 2021
theta = 0:10:360;
r = linspace(1,2,numel(theta));
polarplot( deg2rad(theta), r)

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by