title: How to display values in matrix as colors?
body: <p>I've got a matrix A in MATLAB with the two values '100' and 'NaN' (the matrix below is just a simplified version of the original one). How can I display the values as black and white: for example '100' should appear as a black square and 'NaN' as a white square</p>
  
  <pre><code>A = [NaN NaN NaN 100 100; NaN NaN NaN 100 NaN; 100 NaN 100 NaN NaN];
  </code></pre>