title: Convert correlation matrix to an RGB image matlab
body: <p>I have a correlation Matrix outputed by the corr(X) function.</p>
  
  <p>I need to display it in an RGB image format with the following specs.</p>
  
  <p>Negative correlation should be red and possitive correlation should be green.
  The values of the correlation matrix are in the range of [ -1 , 1 ].</p>
  
  <hr>
  
  <p>1   -0,0286473845495979 0,185190317331816<br>
  -0,0286473845495979 1   -0,309327144422681<br>
  0,185190317331816   -0,309327144422681  1</p>
  
  <hr>
  
  <p>I convert the matrix to the range of [ -255 , 255 ] and I need to display the negative values in red and the possitive values in green, with the corresponding color intensity ...</p>
  
  <hr>
  
  <p>0   -262    208<br>
  -262    0   -334<br>
  208 -334    0</p>
  
  <hr>
  
  <p>Any help would be great !</p>