filling between two polar plots
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
i have read the fill command and i know that i need to convert to cartesian coordinated in order to use it but when i do that ,the image contour gets distorted . is there a way to do the fill command in polar coordinates? Thanks
0 comentarios
Respuestas (1)
KSSV
el 16 de Feb. de 2017
angle = linspace(0,2*pi) ;
radius = 2*ones(1,100) ;
h = polar(angle,radius);
patch( get(h,'XData'), get(h,'YData'), 'g')
3 comentarios
KSSV
el 16 de Feb. de 2017
Check this example may be useful:
clc; clear all ;
angle = linspace(0,2*pi) ;
a1 = randsample(angle,10) ;
a2 = randsample(angle,2) ;
r1 = rand*ones(size(a1)) ;
r2 = rand*ones(size(a2)) ;
a12 = [a1 a2] ;
r12 = [r1 r2] ;
h = polar(a12,r12);
patch( get(h,'XData'), get(h,'YData'), 'g')
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!