考虑以下命令:
javaaddpath('weka-latest.jar');
import weka.core.FastVector
当我在 Windows (MATLAB R2014a) 中运行上述代码时,它工作得很好。但在linux(MATLAB7.12.0或R2011a)中我收到以下错误:
??? Error using ==> import
Import argument 'weka.core.FastVector' cannot be found or cannot be imported.
知道如何调试这个问题吗?
PS。 jar 文件位于此链接中: https://www.dropbox.com/s/k4io5sh27rqns7q/weka-latest.jar?dl=0最佳答案
这是 MATLAB 版本问题。在我的 Linux 机器上安装 MATLAB 2014b 后,一切正常。
关于java - 使用 javaaddpath 将 java 库添加到 MATLAB 中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29136233/