I am trying to compile this piece of code:
import com.mathworks.engine.*;public class javaEvalFunc { public static void main(String[] args) throws Exception { MatlabEngine eng = MatlabEngine.startMatlab(); eng.evalAsync("[X, Y] = meshgrid(-2:0.2:2);"); eng.evalAsync("Z = X .* exp(-X.^2 - Y.^2);"); Object[] Z = eng.getVariable("Z"); eng.close(); }}
As you can see I need a reference to com.mathworks.engine.*;
matlabroot/extern/engines/java/jar/engine.jar
But in my computer I just have a folder called phyton in this path
matlabroot/extern/engines
Where can I find the .jar file that I need ?
I am using Eclipse IDE by the way. thanks.
Best Answer