title: How to convert grayscale image to rgb with full colors?
body: <p>I'm trying to convert a grayscale image to rgb image . I searched the net and found this code:</p>
  
  <pre><code>rgbImage = repmat(grayImage,[1 1 3]);
  rgbImage = cat(3,grayImage,grayImage,grayImage);
  </code></pre>
  
  <p>but what this does is only give the image in gray-scale with 3-D matrix.
  I want to have a way that i can convert it into true color image.</p>