The angle and radius above the complex plane.

4 visualizaciones (últimos 30 días)
rimi
rimi el 24 de Dic. de 2021
Comentada: rimi el 27 de Dic. de 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 comentarios
Jan
Jan el 25 de Dic. de 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 el 27 de Dic. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

Voss
Voss el 26 de Dic. de 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 comentarios
rimi
rimi el 27 de Dic. de 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 el 27 de Dic. de 2021
theta = 0:10:360;
r = linspace(1,2,numel(theta));
polarplot( deg2rad(theta), r)

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by