Adding thr polar plot to another figure

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?

 Akzeptierte Antwort

KSSV
KSSV am 3 Jul. 2018

1 Stimme

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

Weitere Antworten (0)

Kategorien

Mehr zu Polar Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 2 Jul. 2018

Beantwortet:

am 3 Jul. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by