Prev: Symbolic Substitution in While Loop - What am I missing?
Next: how to draw an arc between two points given centre and radius
From: Chris on 30 Mar 2010 14:55 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... |