How can i increase the number of circles in a polar grid?

조회 수: 6 (최근 30일)
Amit Kumar Das
Amit Kumar Das 2014년 6월 26일
편집: Youssef Khmou 2014년 7월 2일
How can i increase the number of circles in a polar grid?

답변 (1개)

Youssef  Khmou
Youssef Khmou 2014년 7월 2일
편집: Youssef Khmou 2014년 7월 2일
In new version , there might be an option for increasing the number, however i made manual example here, in order to use it, try to define the range of your data and apply this technique :
% Polar plot with increased number of lines
r=0:1:10;
t=0:0.1:2*pi;
figure; grid off;
hold on;
for n=1:length(r)
plot(r(n)*cos(t),r(n)*sin(t),'-.');
end
% Lines
R=r(end);
N=10; % Number of lines
for n=1:N
x=[0 R*cos(2*pi*(n-1)/N)];
y=[0 R*sin(2*pi*(n-1)/N)];
h=line(x,y);
set(h,'LineStyle','-.');
end
% Plot the data : EXAMPLE OF SINUSOIDAL DATA
z=8*sin(2*pi*t);
polar(t,z);
title(' 8 sin(2*\pi*t)');

카테고리

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