0
package matlab;
import com.mathworks.toolbox.javabuilder.*;
import com.eigenface.Eigenface;
public class Test {
public static void main(String[] args) {
Eigenface core = null;
Object [] result = null;
try {
core = new Eigenface();
result = core.EigenFace(2);
System.out.println(result[0]);
} catch (MWException e) {
e.printStackTrace();
}
}
}
我在一个名为Eigenface的包装类中使用了Matlab函数。当我运行我的代码时,我得到这个异常:{?错误使用==> EigenFace 输出参数太多。 }。 由于该函数在Matalab中没有问题,没有人知道为什么我会得到这个异常?Java与Matlab异常
是的,sintax是正确的。我也尝试过你建议的例子,并且我得到了相同的异常,所以我猜这是代码以外的东西... – 2011-12-28 19:20:17