I am trying to read a matrix created in Matlab into a 2D array in java. I have used jmatio so far to write from java to a .mat file (successfully), but now I canβt switch to another vice versa. I managed to import the matrix into an MLArray object using this code:
matfilereader = new MatFileReader("filename.mat"); MLArray j = matfilereader.getMLArray("dataname");
But apart from getting a string representation, I was unable to access the data itself. I did not find an example for this or documentation on the library itself, and I actually wrote a function for parsing an int string into a double [] [] array, but this is only useful if the matrix is ββless than 1000 elements ...
I would be grateful for any experience or advice, thanks,
Amir
source share