Borrar filtros
Borrar filtros

Adding thr polar plot to another figure

1 visualización (últimos 30 días)
MINA
MINA el 2 de Jul. de 2018
Respondida: KSSV el 3 de Jul. de 2018
Hi,
I want to include a few polarplots where there is a black dot, i.e., I want the center of the polar plot to be at each black dot. How can I do it?
  1 comentario
jonas
jonas el 2 de Jul. de 2018
Can you provide some data to work with?

Iniciar sesión para comentar.

Respuesta aceptada

KSSV
KSSV el 3 de Jul. de 2018
C = rand(10,2) ;
plot(C(:,1),C(:,2),'.k')
% polar coordinates
theta = linspace(0,2*pi,50);
rho = 0.05*theta/10;
% conver polar coordinates to cartesian
[x,y] = pol2cart(theta,rho) ;
hold on
for i = 1:10
plot(x+C(i,1),y+C(i,2))
end

Más respuestas (0)

Categorías

Más información sobre Polar 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