title: How can I use MATLAB arrays as keys to the HashMap java objects?
body: <p>The put function works fine but the get function does not. Apparently I don't know the trick.</p>
  
  <pre><code>&gt;&gt; X = [ 1, 2, 3];
  &gt;&gt; M = java.util.HashMap;
  &gt;&gt; M.put(X,1);
  &gt;&gt; M.get([1,2,3])
  
  ans = []
  </code></pre>
  
  <p>I have searched and read many posts but could not find a solution to this problem.
  It would be great if someone can let me know the trick.</p>