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

2 views (last 30 days)
How can i increase the number of circles in a polar grid?

Answers (1)

Youssef  Khmou
Youssef Khmou on 2 Jul 2014
Edited: Youssef Khmou on 2 Jul 2014
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)');

Categories

Find more on Polar Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!