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

Create successful ePaper yourself

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

surfllight source, use surfl(X',Y',Z'). Because of the way surface normal vectorsare computed, surfl requires matrices that are at least 3-by-3.ExamplesView peaks using colormap-based lighting.[x,y] = meshgrid(–3:1/8:3);z = peaks(x,y);surfl(x,y,z);shading interpcolormap(gray);axis([–3 3 –3 3 –8 8])2-495

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

Saved successfully!

Ooh no, something went wrong!