LoginSignup
0
0

More than 5 years have passed since last update.

MATLABからScalaのコードを呼び出す

Last updated at Posted at 2015-11-01

こんな感じで、JVMのバイナリをMATLABから呼べる。


package nebuta.matlablib

object Main {
    def hello: Unit = {
        println("Hello.")
    }
    def main(args:Array[String]):Unit = {
        hello
    }
}
public Polygon(int xpoints[], int ypoints[], int npoints)
poly = java.awt.Polygon([14 42 98 124], [55 12 -2 62], 4);
poly.xpoints
poly.ypoints

javaclasspath
javaaddpath 'Main.class'
javaaddpath 'Main$.class'
javaaddpath 'scala-library-2.9.1.jar'
javaclasspath
nebuta.matlablib.Main.hello
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0