[转帖]IDL调用Matlab
转自http://bbs.matwav.com/viewthread.php?tid=683505
测试环境IDL8.0+MATLAB7.13
pro test oMatlab = obj_new('IDLcomIDispatch$ProgId$Matlab_application_7.13') ;use '..._6' instead if you use Matlab 6.x ;oMatlab -> setProperty, visible=0 a = 4.8 oMatlab -> PutWorkspaceData, 'b', 'base', a oMatlab -> Execute, 'c = fix(b);' oMatlab -> GetWorkspaceData, 'c', 'base', d help, a, b, c, d obj_destroy, oMatlab end