Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: Making holes Up: Examples Previous: Interpolation

Generating solids from functions

Use cylinder
  t = 0:pi/10:2*pi;
  [X,Y,Z] = cylinder(2 + cos(t));
  surf(X,Y,Z);
  axes('Box','on');



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-24