I have a set of data that represents coloring on a sphere. I want to project half of that data onto a circle. I'm trying to use pcolor and surf (according to the documentation on pcolor), but it seems that no matter what I do the circle just ends up being a solid color. Here is a sample of what my code would look like:
rho1(size(C1,1)) = 1; theta_c1 = linspace(0,2*pi,size(C1,2)); [theta_c1,rho1] = meshgrid(theta_c1,rho1); [xc1,yc1] = pol2cart(theta_c1,rho1); surf(xc1,yc1,zeros(size(xc1)),C1,'Edgecolor','None');
C1 is taken from my data and represents the color data for surf or pcolor. If I just do pcolor(C1), then the colors turn out exactly how I would expect them to, except that they are not on a circle.
Thanks in advance.
Best Answer