i have a heat transfer problem i need to solve on matlab with finite difference method for a sphere of radius 5cm.

i jus need to know how to code the geometry of a sphere so that i can do the heat transfer equations on it.

do i have to do it in cartesian form or radial works as well? how would i go about meshing it so i can get color representation of the temperature distribution on matlab?

would appreciate any help and advice as im totally stumped.

thanks

mo