Q:

Create a custom colormap for a sphere that consists of the first 25 colors in the default colormap jet. Display sphere(25) with a colorbar

0

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 cmap = colormap;
 cmap = cmap(1:25,:);
 colormap(cmap)
 [x, y, z] = sphere(25);
 surf(x,y,z)
 colorbar

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now