1、输入deploytool命令
2、选择Library Compiler
3、配置打包
4、有效文件
5、java函数调用
package com.beescloud.frame.matlab;import com.mathworks.toolbox.javabuilder.MWException;
import test.Class1;public class MatlabTest {public static void main(String[] args) throws MWException {Class1 myCalClass = new Class1();Object[] objects = myCalClass.test(3,1,2,3); //调用自己写的matlab函数,此处只是演示,名字要改成自己的方法名for (int i = 0; i < objects.length; i++) {System.out.println(objects[i]);}System.out.println("调用成功了");}
}