How can i increase the number of circles in a polar grid?
Afficher commentaires plus anciens
How can i increase the number of circles in a polar grid?
Réponses (1)
Youssef Khmou
le 2 Juil 2014
Modifié(e) : Youssef Khmou
le 2 Juil 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)');

Catégories
En savoir plus sur Polar Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!