Can you publish here an extract of your code doing matlab operations ?
Here is an extract of my own translation of matlab in scala code:
val dtheta_dtheta=eye0(theta.length)
val dsto_dtheta=data.dsto_dtheta
var c0=phi.C0(info_palier(data.NbInjectionCumulees).toInt,::)
var dc0_dtheta=diag0(phi.C0(info_palier(data.NbInjectionCumulees).toInt,::))*dtheta_dtheta(data.errC0,::)
It is based on the following compilechain:
scalac -deprecation -d . -classpath ~/ScalaLab291Jan21/Scalalab291.jar:`ls ~/ScalaLab291Jan21/lib/*.jar | tr '\012' :` *.scala
~/jdk1.7.0_45/bin/jar cf monScala.jar com
I still use
http://www.scala-lang.org/download/2.9.1.final.html because this is the most recent generating .jar that are compatible with javaaddpath from Matlab.
Contact me if anyone is interested.