Borrar filtros
Borrar filtros

how to make a polar plot line continuous between end and beginning

5 visualizaciones (últimos 30 días)
I am plotting polar plots and i would like to have the line linked between the last and first point of the plot.
I tried to find out if there was a way to achieve that, but was not able, is there any way?

Respuesta aceptada

Diego Candia
Diego Candia el 7 de Nov. de 2020
Movida: Voss el 5 de Ag. de 2023
like this:
polarplot([angle angle(1)], [radius radius(1)])
  1 comentario
dabe
dabe el 5 de Ag. de 2023
Movida: Voss el 5 de Ag. de 2023
I just wanted to quickly confirm that Diego's answer works.

Iniciar sesión para comentar.

Más respuestas (1)

Paulo Silva
Paulo Silva el 31 de Mzo. de 2011
example
hold on
t = 0:.01:pi;
h1=polar(t,2*t,'--r')
t1=t(1);
[THETA,RHO] = pol2cart(t1,2*t1) %last
t2=t(end);
[THETA1,RHO1] = pol2cart(t2,2*t2) %first
h2=plot(THETA,RHO,'*')
h3=plot(THETA1,RHO1,'r*')
h4=line([THETA THETA1],[RHO RHO1])
legend([h1 h2 h3 h4],'polar line','first value','last value','line from first value to last value')

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by