title: create a java array of double (primitive) in matlab
body: <p>I would like to be able to declare a java array of <code>double</code> in matlab. In java you would do something like this:</p>
  
  <p><code>double[] arr = new double[4];</code></p>
  
  <p>Now I want to do the same thing in Matlab. I have tried the following:</p>
  
  <pre><code>arr = javaArray('D', 100);
  arr = javaArray('[D', 100);
  </code></pre>
  
  <p>It gives me the <code>No class [D can be located on the java class path</code> error.</p>
  
  <p>I know I can create an array of <code>Double</code> with <code>arr = javaArray('com.lang.Double', 100);</code>, but this is not a primitive type and would require further conversion.</p>