12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

cylinderExamplesCreate a cylinder with randomly colored faces.cylinderaxis squareh = findobj('Type','surface');set(h,'CData',rand(size(get(h,'CData'))))10.80.60.40.2010.510−0.5−1−1−0.500.5Generate a cylinder defined by the profile function 2+sin(t).t = 0:pi/10:2*pi;[X,Y,Z] = cylinder(2+cos(t));surf(X,Y,Z)axis square2-117

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

Saved successfully!

Ooh no, something went wrong!