Mercurial > hg > human-echolocation-java-webapp
view 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 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(); } } }