Scilab sci = new Scilab(); sci.open(); sci.exec("b = matrix(1:100,10,10)"); ScilabType b = sci.get("b"); b.getHeight(); // 10 b.getWidth(); // 10 ScilabDouble b2 = (ScilabDouble)sci.get("b"); b2.equals(b); // true