
How can i increase the number of circles in a polar grid?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How can i increase the number of circles in a polar grid?
0 comentarios
Respuestas (1)
Youssef Khmou
el 2 de Jul. de 2014
Editada: Youssef Khmou
el 2 de Jul. de 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)');

0 comentarios
Ver también
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!