I'm just trying to plot known sphere coordinates:
function sphere(r)phi = linspace(0,2*pi);theta = linspace(0,pi);x = r*cos(phi).*sin(theta);y = r*sin(phi).*sin(theta);z = r*cos(theta);plot3(x,y,z)end
However this isn't doing the trick. What have I mathematically confounded?
Best Answer