Mercurial > hg > human-echolocation-java-webapp
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b6acfffd25cd |
---|---|
1 import com.mathworks.toolbox.javabuilder.MWJavaObjectRef; | |
2 import com.mathworks.toolbox.javabuilder.MWNumericArray; | |
3 import com.mathworks.toolbox.javabuilder.MWException; | |
4 | |
5 import uk.ac.soton.isvr.*; | |
6 | |
7 public class TestEchoClass { | |
8 | |
9 int test = 4; | |
10 | |
11 double[][] square = new double[0][]; | |
12 | |
13 | |
14 public static void main(String[] args) { | |
15 System.out.println("YOOOOOO, Bs"); | |
16 | |
17 HumanEcho echo; | |
18 | |
19 try { | |
20 echo = new HumanEcho(); | |
21 Object[] result = echo.gen_echo(1); | |
22 | |
23 MWNumericArray array = (MWNumericArray)result[0]; | |
24 //square = (double[][])array.toArray(); | |
25 | |
26 } | |
27 catch(MWException e) { | |
28 e.printStackTrace(); | |
29 } | |
30 | |
31 } | |
32 | |
33 } |