By using matlab or mathematica, I want to draw a unit sphere which should be colored in a particular way. I mean that I have a specific function F(x,y,z) which has a specific value in each point of the sphere, I want to color the sphere such that white points correspond to the value 0 of F and (for example) Blue points correspond to the value 1 of F. Evidently I need a color bar which shows that each intensity of the blue color corresponds to value between zero and one.

I will be thankful if anybody can help me.

Similar questions and discussions