RE: Re: Matlab& Eclipse

From: Nuno Gomes <ngomes_at_dei.isep.ipp.pt>
Date: Thu 28 Apr 2005 02:03:09 PM GMT
Message-Id: <E1DRAzh-0001Zr-1r@typhoon.icparc.ic.ac.uk>
Hi


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.

Regards
Nuno Gomes
GECAD - ISEP

-----Mensagem original-----
De: owner-eclipse-users@icparc.ic.ac.uk
[mailto:owner-eclipse-users@icparc.ic.ac.uk] Em nome de Joachim Schimpf
Enviada: quinta-feira, 28 de Abril de 2005 11:53
Para: Fiora Pirri
Cc: eclipse-users@icparc.ic.ac.uk
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
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 16:34:18 2005

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