RE: Re: Matlab& Eclipse

From: Nuno Gomes <>
Date: Thu 28 Apr 2005 02:03:09 PM GMT
Message-Id: <>

I'm using ECLIPSE with matlab, but in fact, I use a simple interface C++
function. This function is responsible to start the matlab engine, and
pass data and commands from Eclipse to matlab, and return results to
Eclipse. In spite of the C code there are just a few lines of code.

Nuno Gomes

-----Mensagem original-----
[] Em nome de Joachim Schimpf
Enviada: quinta-feira, 28 de Abril de 2005 11:53
Para: Fiora Pirri
Assunto: [eclipse-users] Re: Matlab& Eclipse

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
    (it is in the eclipse_source package of the ECLiPSe 5.8

   Joachim Schimpf              /             phone: +44 20 7594 8187
   IC-Parc                     /
   Imperial College London    /
Received on Thu Apr 28 16:34:18 2005

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