23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

cylinder<br />

2-362<br />

1<br />

0.8<br />

0.6<br />

0.4<br />

0.2<br />

0<br />

1<br />

set(h,'CData',rand(size(get(h,'CData'))))<br />

0.5<br />

0<br />

−0.5<br />

−1<br />

Generate a cylinder defined by the profile function 2+sin(t).<br />

t = 0:pi/10:2*pi;<br />

[X,Y,Z] = cylinder(2+cos(t));<br />

surf(X,Y,Z)<br />

axis square<br />

−1<br />

−0.5<br />

0<br />

0.5<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!