Call function matlab scala

I would like to write some code snippets in Scala. It is important for me that this code can be called from Matlab. AFAIK Java code can be easily integrated using Matlab. http://www.mathworks.co.uk/help/matlab/ref/javamethod.html

Is this also true for Scala code?

+4
source share
2 answers

This is also true for Scala code. Just pretend that you are doing Java interaction (for example, the method +will actually be $plus) and make sure that scala -library.jar is in the path of the Matlab class (for example, with javaaddpath).

, Java/Matlab interop, " ", . , / .

. , Unix: , , , , . , Scala Matlab Matlab Matlab Scala .

Scala Matlab , , Java. .

+4

Scala , Matlab, Java C. , , Java, , Scala Jave, Matlab. (MEX-files, loadlibrary ..)

0

All Articles