title: How to create a picture that fills in colours based on a matrix?
body: <p>I have a cell array in MATLAB in the following format:</p>
  
  <pre><code>aa = {[1 2],[2 3],[1 2 3 4 5 6],[5],[1]}
  </code></pre>
  
  <p>Is it possible to create a diagram in this style (i.e. filling in a block colour for each time a number shows up)?</p>
  
  <p><a href="https://i.stack.imgur.com/tJBpY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tJBpY.png" alt="enter image description here"></a></p>