attempt to use real matlab code from java