I am trying to convert a uint16
Matlab matrix (size: 1109-by-1024) into a Java short[][]
using the jmatio library. Following is the code:
String name = "array_re";
String fileName = "microsec.mat";
MatFileReader matfilereader = new MatFileReader( fileName );
short[][] mlArrayShort = ((MLInt16) matfilereader.getMLArray( name
)).getArray();
However, at the third line, I am getting the following error:
"com.jmatio.io.MatlabIOException: Incorrect matlab array class: uint16".
Does anyone know how to resolve this?