Re: Matlab& Eclipse

From: Joachim Schimpf <j.schimpf_at_icparc.ic.ac.uk>
Date: Thu 28 Apr 2005 10:53:23 AM GMT
Message-ID: <4270C0A3.8060508@icparc.ic.ac.uk>
Fiora Pirri wrote:
> Have you any idea on how to
> interface Matlab and Eclipse without passing through C?


I have personally no experience with Matlab, so I'm cc-ing your
request to the eclipse-users mailing list in the hope that someone
out there knows more.

In general, it is relatively easy to make loose connections between
ECLiPSe and other systems using either

- pipes (see exec/2,3 predicates): This requires that Matlab has a
   kind of command-line version that can be controlled from ECLiPSe.
   I'm not sure this is the case.

- sockets (socket/3, bind/2, connect/3, select/3 etc predicates):
   This requires that Matlab have language facilities to open and
   communicate with sockets. I couldn't find anything of that sort
   in Matlab's documentation, but i only had a quick look.

- named pipes: this should be possible (on Unix at least) since Matlab
   can do file I/O. An example of such an interface is the ECLiPSe
   interface to GAP. See the file gap.ecl in your ECLiPSe's lib directory
   (it is in the eclipse_source package of the ECLiPSe 5.8 distribution).



-- 
  Joachim Schimpf              /             phone: +44 20 7594 8187
  IC-Parc                     /      mailto:J.Schimpf@imperial.ac.uk
  Imperial College London    /    http://www.icparc.ic.ac.uk/eclipse
Received on Thu Apr 28 11:59:04 2005

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:36 PM GMT GMT