Running MATLAB function from Java

后端 未结 5 1091
温柔的废话
温柔的废话 2020-11-28 10:07

I have an .m file in MATLAB which I would like to call from Java an get the solution as a string or whatever in Java. This sounds really simple but for some reason I can\'t

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 11:01

    The trick is to use the MatlabControl class http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html. It's very easy to use and you can do exactly what you're trying to do (and more).

提交回复
热议问题