title: How to get the GLCM images to show in Matlab
body: <p>I want to show the GLCMs of an image in Matlab. So far I've tried and been able to get only to the stats. </p>
  
  <pre><code>I = imread('cameraman.tif');
  glcm1 = graycomatrix(I);
  Stats = graycoprops(glcm1);
  </code></pre>
  
  <p>And it results in the stats. </p>
  
  <p>Stats = </p>
  
  <pre><code>   Contrast: 0.5006
  Correlation: 0.9269
       Energy: 0.1636
  Homogeneity: 0.8925
  </code></pre>
  
  <p>What I want is to show the image of these 4 GLCMs like here.</p>
  
  <p><a href="https://i.stack.imgur.com/tsEvh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tsEvh.jpg" alt="Image"></a>
  It should be simple to output that image, but I'm all new to this thing and don't know what I'm missing. </p>