Re: What is the simplest way to communicate between IDL and MATLAB? [message #64441] |
Sat, 27 December 2008 18:06 |
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  |
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  |
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.
|
|
|