Adding thr polar plot to another figure

조회 수: 4 (최근 30일)
MINA
MINA 2018년 7월 2일
답변: KSSV 2018년 7월 3일
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
jonas
jonas 2018년 7월 2일
Can you provide some data to work with?

댓글을 달려면 로그인하십시오.

채택된 답변

KSSV
KSSV 2018년 7월 3일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Polar Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by