i am using matlabcontrol
API in java to connect matlab and java. I am calling matlab function using returningFeval and passing function name and Object array.
Java Code
Object[] path = new Object[2];
path[0]=imgp1; //imgp1,imgp2 path of image file
path[1]=imgp2;
Object[] out = proxy.returningFeval("main_single",1,path);
now on matlab side how to retrieve element of this array.i.e in this case i want to extract path[0] and path[1] and store it in some variable.
Matlab Code
function rslt = main_single(path)
imgp1 = path(0);
imgp2 - path(1);
can anyone please tell me how to do this..?