From: Ed Yu on
Heeten Choxi,

You are so right, there isn't an easy way to do that... Maybe you can write a java class to do just that:

public class DoubleArray {
public double[][] create(double rows, double cols) {
return new double[rows.intValue()][cols.intValue()];
}
}

Ed.
From: Heeten Choxi on
Hi Ed,

The problem I'm noticing with that approach is that returning an array from java to matlab seems to be very slow. It's faster to just create a memory mapped file in java and have matlab load the array from that. I was hopinh using javaArray would be faster than both of these approaches and less convoluted then the memory mapped file.

Any ideas on how to get data from java into matlab fast?