title: In matlab, how to 'smooth' pixels in 2D heatmap using imagesc
body: <p>Using MATLAB, I have a matrix (<code>data</code>) and am plotting using <code>imagesc(data)</code> to produce a heatmap: </p>
  
  <pre><code>data = [1 1 1 1 1 1 1 1 1 1; 1 1.04 1.04 1.04 1.03 1 1.01 1.01 1.03 1.01; 1.36 1.3 1.25 1.2 1.15 1.1 1.2 1.13 1.07 1.11; 3.65 3.16 2.94 2.68 2.39 2.22 2.17 1.95 1.79 1.81; 5.91 5.75 5.47 5.3 4.98 4.79 4.62 4.55 4.38 4.19; 6 6 5.99 5.83 5.49 5.33 5.14 4.94 4.77 4.74];
  imagesc(data)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/BBtpY.png" alt="enter image description here"></p>
  
  <p>Is there a way to 'smooth' the pixels in order to produce something more like this:
  <img src="https://i.stack.imgur.com/YiWAD.png" alt="enter image description here"></p>