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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Berger, Daniel (Guest)
on 2006-02-02 18:49
(Received via mailing list)
> 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
This topic is locked and can not be replied to.