The angle and radius above the complex plane.

4 views (last 30 days)
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
Jan
Jan on 25 Dec 2021
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 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)

Voss
Voss 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
rimi
rimi on 27 Dec 2021
Thank you for your answer. But I'm curious about how to place the angle and radius on the complex plane.
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.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!