Call a java function from matlab script
问题 I'm trying to call a java function from a Matlab script, I tried all the solutions put in the website but I didn't get an issue. My class is simple: package testMatlabInterface; public class TestFunction { private double value; public TestFunction() { value=0; } public double Add(double v) { value += v; return value; } public static void main(String args[]) { } } So I put .java file (also .class ) in my workingspace C:\scriptsMatlab and I added this path to javaclasspath of Matlab, but when I