Re: WIN32OLE extension using in/out SAFEARRAYs (Matlab inter


#1

Here is the method signature.

is the code I am using.

require ‘win32ole’
matlab = WIN32OLE.new(‘Matlab.Application’)
matlab.Execute(‘bob = 1:5;’)
t1 = Array.new(5, 0.0)
t2 = t1.dup
t3 = matlab.GetFullMatrix(‘bob’, ‘base’, t1, t2)

I can’t answer your question directly, but a search on “getfullmatrix” +
“perl” revealed some Matlab examples that you might be able to borrow
from.

Regards,

Dan