From: Chris on
where z and x are vectors of values and theta is in radians:

I am trying to mesh z vs. x rotated around the x axis but I cannot seem to get it to work. So far I have:

y = r.*cos(theta);
z = r.*sin(theta);
[yy,zz] = meshgrid(y,z);
xx = zz.^2 + yy.^2;
mesh(xx,yy,zz)

If I specify a radius it will give me a graph but the radius should be a function of z and x right? Where should I go from here?
Please help...