Mercurial > hg > human-echolocation-java-webapp
diff webapp/WEB-INF/src/TestEchoClass.java @ 0:b6acfffd25cd
Initial commit of code. Not in a working state yet. This code is based on the JavaEndToEnd example described on Mathwork's MATLAB Application Deplyment (Web Example Guide for R2013b) - see this project's documentation for more details.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 27 Nov 2013 11:10:43 +0000 |
parents | |
children | f6cffd6abce3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/webapp/WEB-INF/src/TestEchoClass.java Wed Nov 27 11:10:43 2013 +0000 @@ -0,0 +1,33 @@ +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(); + } + + } + +}