title: How to plot colorbar with specific range of value in Matlab
body: <p>I have a colorized lines and I want to plot the colorbar for those line with specific value. The lines are colorized by RGB value. Now I want to change the value of the colorbar to another range of value. I mean, I need only change the range of shown value in colorbar to another range. in this <a href="http://s000.tinyupload.com/?file_id=02872627357370195223" rel="nofollow">Link</a>, there is my original output for color bar and I want to change the value the color bar to another range of value like <a href="http://s000.tinyupload.com/?file_id=73768643315988479345" rel="nofollow">This</a>. 
  This is my code that I have written by all the time it shows me my original range not my define range </p>
  
  <pre><code>hold on
  for k = 1:Num_Line_SIFTS
   plot3([SIFT_1((k,1),SIFT_2((k,1)],[SIFT_1((k,2),SIFT_2((k,2)],[SIFT_1((k,3),SIFT_2((k,3)],...
         'o-','Color',[RGB_0_1(k,1) RGB_0_1(k,2) RGB_0_1(k,3)],'MarkerFaceColor',[RGB_0_1(k,1) RGB_0_1(k,2) RGB_0_1(k,3)],'MarkerEdgeColor',...
         'k', 'LineWidth',2)
  end
  
  h = colorbar;
  set(h,'xlim', [ min(min(Uncertainty_Distances_between_SIFTs))  max(max(Uncertainty_Distances_between_SIFTs))])
  
  hold off
  </code></pre>
  
  <p>can anybody help me for solving this issue?</p>