Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to call matlab function from a java program

 
santosh kimothi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am having some matlab commands and i want to call those matlab commands from my java program.
can anybody tell me the full code by calling a matlab command in java function.
i am trying many examples from net but i am not able to execute the matlab command.
 
Jeff Storey
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Santosh,

There is a class called MatlabControl that will allow you to do this. http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html.

Jeff
 
Joshua Kaplan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a Java library inspired by the class MatlabControl called matlabcontrol which can do everything that class can do and far more. To get started, take a look at the walkthrough.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic