comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: What is the simplest way to communicate between IDL and MATLAB?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: What is the simplest way to communicate between IDL and MATLAB? [message #64441] Sat, 27 December 2008 18:06
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Dec 27, 6:43 pm, Craig Markwardt <cbmarkwa...@gmail.com> wrote:
> On Dec 27, 9:15 am, erano <eran.o...@gmail.com> wrote:
>
>> Hello,
>
>> I need to send 2 arrays and few parameters from IDL to MATLAB, run a
>> MATLAB function, and have back one array from MATLAB to IDL (as a
>> result from the MATLAB function).
>> Can anyone suggest a solution?
>> The ideal solution will be fully automatic, but half automatic will be
>> nice.
>
> Maybe by pack mule?
>
> If not that, then by data file would be the next easiest.

Hi,

Here's generic array transfer routines I have used in the past with
some success. As Craig suggest, they use files to move the data - you
don't need to worry too much about the details. I have not used them
in a very long time, but with luck they will work for you, too.

http://www.tidewater.net/~pemaquid/gen.zip

Cheers,
Ben
Re: What is the simplest way to communicate between IDL and MATLAB? [message #64442 is a reply to message #64441] Sat, 27 December 2008 18:06 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Dec 27, 6:43 pm, Craig Markwardt <cbmarkwa...@gmail.com> wrote:
> On Dec 27, 9:15 am, erano <eran.o...@gmail.com> wrote:
>
>> Hello,
>
>> I need to send 2 arrays and few parameters from IDL to MATLAB, run a
>> MATLAB function, and have back one array from MATLAB to IDL (as a
>> result from the MATLAB function).
>> Can anyone suggest a solution?
>> The ideal solution will be fully automatic, but half automatic will be
>> nice.
>
> Maybe by pack mule?
>
> If not that, then by data file would be the next easiest.

Hi,

Here's generic array transfer routines I have used in the past with
some success. As Craig suggest, they use files to move the data - you
don't need to worry too much about the details. I have not used them
in a very long time, but with luck they will work for you, too.

http://www.tidewater.net/~pemaquid/gen.zip

Cheers,
Ben
Re: What is the simplest way to communicate between IDL and MATLAB? [message #64443 is a reply to message #64442] Sat, 27 December 2008 15:43 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Dec 27, 9:15 am, erano <eran.o...@gmail.com> wrote:
> Hello,
>
> I need to send 2 arrays  and few parameters from IDL to MATLAB, run a
> MATLAB function, and have back one array from MATLAB to IDL (as a
> result from the MATLAB function).
> Can anyone suggest a solution?
> The ideal solution will be fully automatic, but half automatic will be
> nice.

Maybe by pack mule?

If not that, then by data file would be the next easiest.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: What is the simplest way to communicate between IDL and MATLAB?
Next Topic: Re: Bug in GSHHS Data Files?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:05:18 PDT 2025

Total time taken to generate the page: 0.00419 seconds