Mercurial > hg > human-echolocation-java-webapp
view webapp/WEB-INF/src/TestEchoClass.java @ 1:5f60298bcc0b
Added build file (for ant) with the compile-matlab target (still with my filesystem's local paths).
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 27 Nov 2013 12:09:16 +0000 |
parents | b6acfffd25cd |
children | f6cffd6abce3 |
line wrap: on
line source
import com.mathworks.toolbox.javabuilder.MWJavaObjectRef; import com.mathworks.toolbox.javabuilder.MWNumericArray; import com.mathworks.toolbox.javabuilder.MWException; import uk.ac.soton.isvr.*; public class TestEchoClass { int test = 4; double[][] square = new double[0][]; public static void main(String[] args) { System.out.println("YOOOOOO, Bs"); HumanEcho echo; try { echo = new HumanEcho(); Object[] result = echo.gen_echo(1); MWNumericArray array = (MWNumericArray)result[0]; //square = (double[][])array.toArray(); } catch(MWException e) { e.printStackTrace(); } } }