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

Home » Public Forums » archive » Talking to Matlab
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Talking to Matlab [message #41127] Thu, 30 September 2004 09:12 Go to previous message
rcohen is currently offline  rcohen
Messages: 1
Registered: September 2004
Junior Member
I'm trying to get and set variables in Matlab from IDL. Using an older
newsgroup posting of how to do this, I'm able to put an array created
in IDL into Matlab and see it in Matlab's workspace, but I'm getting a
"bad variable type" response from Matlab when I try to get the array
back into IDL. Anyone see what my problem is in the code below? Or, if
there's a better way to do
this that would be valuable information as well. This is with IDL 6
and
Matlab 6.5 R13. Many thanks.

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);'
IDL> fromMat = oMatlab6->GetFullMatrix('fromidl','base',zreal,zimag)
% IDLCOMIDISPATCH$PROGID$MATLAB_APPLICATION_6::GETFULLMATRIX: Unable
to
call method GETFULLMATRIX.
Bad variable type.
% Execution halted at: $MAIN$
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: DISPLAY environment on Mac OS-X
Next Topic: Projection Parameters in ENVI

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

Current Time: Fri Oct 10 08:14:07 PDT 2025

Total time taken to generate the page: 0.48062 seconds