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.

surf, surfcColor a sphere with the pattern of +1s and -1s in a Hadamard matrix.k = 5;n = 2^k–1;[x,y,z] = sphere(n);c = hadamard(2^k);surf(x,y,z,c);colormap([1 1 0; 0 1 1])axis equal10.50−0.5−110.50−0.5−1−1−0.500.51See Alsoaxis, caxis, colormap, contour, mesh, pcolor, shading, viewProperties for surface graphics objects2-471

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

Saved successfully!

Ooh no, something went wrong!