title: Matlab Ploting with different color for iso-surface
body: <p>I was trying use the code shown below to plot in such a way that each iso-surface will be different in color and there will be a color bar at the right. I made a <code>ss(k)</code> color matrix for different colors. Number of iso-surfaces is 10 but I have only 8 colors. That's why I wrote <code>ss(9)='r'</code> and <code>ss(10)='r'</code>. </p>
  
  <p>I need a solution to plot the iso-surface with different color and bar at the right side. </p>
  
  <pre><code>ss=['y','m','c','r','g','b','w','k','r','r']
  k=1;
  for i=.1:.1:1
   p=patch(isosurface(x,y,z,v,i));
   isonormals(x,y,z,v,p)
   hold on;
  
   set(p,'FaceColor',ss(k),'EdgeColor','none');
   daspect([1,1,1])
   view(3); axis tight
   camlight 
   lighting gouraud
   k=k+1;
  end
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/8DFYy.jpg" alt="enter image description here"></p>