I am trying to prepare this exercise in my class on Matlab (as a part of Applied Physics lab for CS engineers) where you have to model the temperature fluctuation over the surface a planet whose one side always faces the parent star and one side is always away from it (half frozen-half baked). Here is the function I am using:
T(Theta, Phi) = T0 + T1*sin^2(Theta) + T2*(1+sin(Phi))
I want to plot the above function on a surface of a sphere as a color plot i.e. the color of a point on the surface should represent the temperature T at the point. How can I go about doing it?
All I have done so far gives me a plot like this:

I want something like the image below but with different color distribution of course, given according to the function I gave above.


"I want to plot the above function on a surface of a sphere"? A sphere is a sphere. Are you saying that you want to map the colours onto a sphere? Or do you want to create a closed 3D object with the above shape, i.e just make the edges on the respective side to meet so to speak?