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

Home » Public Forums » archive » Re: Can IDL and MATLAB run together??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Can IDL and MATLAB run together?? [message #32130 is a reply to message #32094] Wed, 18 September 2002 12:25 Go to previous message
mule_rocks is currently offline  mule_rocks
Messages: 2
Registered: September 2002
Junior Member
Both IDL and MATLAB have a "callable" API that in theory you could use
to call one from the other, and vice-versa, but both are designed to
allow you to call the internals as a subroutine (at a very low-level)
from C, so you'd probably have to write some sort of C wrapper to
go-between in both instances.

If you're running on Windows you could use ActiveX technology to get
the two programs to communicate, but then again you have to ask
yourself would it be easier to just transfer data back and forth via
files on disk? Here's an example of pushing data from an IDL session
into MATLAB6's ActiveX Automation Server and making a plot in the
MATLAB workspace:

IDL> oMatlab6=OBJ_NEW('IDLcomIDispatch$PROGID$Matlab_Application_ 6')
IDL> data=DINDGEN(100)
IDL> PLOT, data
IDL> oMatlab6->PutFullMatrix,'fromidl','base',data,data
IDL> oMatlab6->Execute,'plot(fromidl);'

Note that this is IDL 5.5 or newer and MATLAB6(R12) has to be
installed on the computer for this to work.

- AEB
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Calling a procedure
Next Topic: Indexing into Structures???

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

Current Time: Sun Oct 12 00:55:27 PDT 2025

Total time taken to generate the page: 1.35801 seconds