Hi I'm trying to calculate the normal vector, in spherical coordinates at points on a surface.
I have calculated dr/dtheta and dr/dphi where r is the vector form the origin to the surface. I know i now need the cross product of these two values however i'm unsure as to how to do this on matlab.