title: colour spheres according to data
body: <p>i have a 622x5 array, where columns 1 to 4 contain the x, y, z and radius of the sphere, column 5 contains the average force on the surface of the sphere. what i want to do is generate the spheres using x,y,z,r but then colour the spheres using the final column of the array. I know how to create spheres in matlab using the following code:</p>
  
  <pre><code>[x y z] = sphere;
  AA=load('C_Lx_Avg.txt');
  
  nn=length(AA(:,1));
  for i=1:nn
    surf(x*AA(i,4)+AA(i,1),y*AA(i,4)+AA(i,2),z*AA(i,4)+AA(i,3));
    if (i==1); hold on; end;
  end
  
  shading interp
  axis equal
  camlight
  lighting phong
  
  set(gca,'FontSize',[16],'FontWeight','bold')
  print fig01 -dpdf
  </code></pre>
  
  <p>But what i am not sure how to do is use the final column of the array to colour the spheres. </p>