Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

interacting java and matlab  RSS feed

 
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to do some Maths related things in Matlab, and for the rest in Java, hoe can I connect them together? Somebody please help. I think, by socket programming we can connect them? But are there any other methods to do this?


And second question, what is the native methods in java, to connect other languages like c?

Thanks...
 
Sheriff
Posts: 21288
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Abimaran Kugathasan wrote:And second question, what is the native methods in java, to connect other languages like c?


Something like that. Native methods are programmed in any other language; mostly C or C++ but others are also possible. This is called JNI.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, What about the Matlab question? How can we use native method to connect other language? Please give me some examples.
 
Java Cowboy
Sheriff
Posts: 16083
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Googling for "matlab java"
 
author
Marshal
Posts: 23438
138
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Abimaran Kugathasan wrote: How can we use native method to connect other language? Please give me some examples.



The JNI tutorial is a good place to start here...

http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html

Henry
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jesper Young wrote:Try Googling for "matlab java"



Yea, I got it. A Java API to control and interact with MATLAB. This is a jar file, I'll try it with my project. Thanks.

Thanks a lot Henry.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!