项目中用到了java连接Matlab,之前是使用java builuder预先编译好,然后再导入使用。
现在突然提出要可以动态导入.m文件来运行,这就必须做到动态编译,网上找啊找,终于找到了https://code.google.com/p/matlabcontrol/wiki/Walkthrough,可以实现动态运行。
源代码下载:https://git.oschina.net/xdxn/Test.git
有空再详细写一下吧,先继续攻坚去了……
项目中用到了java连接Matlab,之前是使用java builuder预先编译好,然后再导入使用。
现在突然提出要可以动态导入.m文件来运行,这就必须做到动态编译,网上找啊找,终于找到了https://code.google.com/p/matlabcontrol/wiki/Walkthrough,可以实现动态运行。
源代码下载:https://git.oschina.net/xdxn/Test.git
有空再详细写一下吧,先继续攻坚去了……