view webapp/WEB-INF/src/TestEchoClass.java @ 3:747ae11a8af8

Fixed build issue that was preventing Ant from running successfully; changed MATLAB function to wrap to reflect new version of the human_echolocation code.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 27 Nov 2013 17:07:39 +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();
          }

    }

}