File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes interacting java and matlab Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "interacting java and matlab" Watch "interacting java and matlab" New topic
Author

interacting java and matlab

Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

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...


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19655
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

OK, What about the Matlab question? How can we use native method to connect other language? Please give me some examples.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Try Googling for "matlab java"


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18545
    
  40

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


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

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.
 
subject: interacting java and matlab
 
Similar Threads
how to call matlab function from a java program
Integration
plot and java
Java to MATLAB?
Can we use matlab for developing graphic algorithms?