title: Generating a 3D plot by revolution of a curve
body: <p>I'm trying to revolve a 2D curve to generate a 3D surface plot. </p>
  
  <p>I've tried using </p>
  
  <pre><code>[X,Z,Y] = cylinder(u);
  surf(X,Y,Z), axis square
  </code></pre>
  
  <p>this, however, revolves my curve around the wrong axis. How do I go about changing the axis?</p>
  
  <p>Thanks alot.</p>