title: MATLAB: extending value list in container.Map object
body: <p>I have been reading over the documentation for using Matlab's container.Map to build something similar to a Python dictionary, but am running into some issues and was hoping someone could shed some light. </p>
  
  <p>Is there a way to extend the contents of the values list that is mapped to a certain key? for instance, say for map "map", key "1234" I have a value of "1.0".</p>
  
  <pre><code>map(1234) = 1.0
  </code></pre>
  
  <p>I would like to extend the values list to [1.0 2.0], and the way I try to do this is</p>
  
  <pre><code>map = containers.Map(1234,1.0)
  map(1234) = [map(1234) 2.0]
  </code></pre>
  
  <p>but I receive an error saying "Error using containers.Map/subsasgn. Specified value type does not match the type expected for this container."</p>
  
  <p>Can I not associate arrays as values to a map key? </p>
  
  <p>Many thanks!</p>