title: MATLAB -- How does one plot a heatmap from nxn matrix?
body: <p>I have a 50x50 matrix with some numbers ranging from 0 to a bit over 1. How do I show a heatmap of this data with a colorbar? What I'm looking for is a plot where the <code>x</code> and <code>y</code> values range from <code>1</code> to <code>50</code> and <code>1</code> to <code>50</code>, with each point (<code>x</code>, <code>y</code>) given a color corresponding to the size of the data at the matrix entry (<code>x</code>, <code>y</code>). For an example of such a heatmap, check out <a href="http://xkcd.com/1138/" rel="noreferrer">this amusing xkcd post</a>.</p>
  
  <p>Thanks!</p>