Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: COM PutFullMatrix Syntax
Date: Fri, 10 Oct 2008 18:15:06 +0000 (UTC)
Organization: Washington University in St. Louis
Lines: 16
Message-ID: <gco63a$pgs$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1223662506 26140 172.30.248.35 (10 Oct 2008 18:15:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 10 Oct 2008 18:15:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1547609
Xref: news.mathworks.com comp.soft-sys.matlab:494605


I am trying to build a model using MATLAB's COM functionality.  The software I'm interfacing with has an method AddIntersection, which has the following syntax:

object.AddIntersection (num, num_boundries, boundary_nums()) 

Thus, it adds object with number num at the intersection of num_boundaries curves where the curves are specified by their internal identification numbers, boudary_nums.  I have been unable to successfully send the array of boundary_nums to the software.  After contacting the software provider, they have indicated that boundary_nums must be of the SafeArray type, which MATLAB's documentation indicates may be passed using the PutFullMatrix function.  I tried to do this with the following command line:

object.AddIntersection(1,2,COMApp.PutFullMatrix('M','global',[1,2],[0,0]))

which returned the error

??? No appropriate method or public field PutFullMatrix for class COM.application.

Does anyone have any experience attempting to use the PutFullMatrix command as an argument in another COM method?  I just can't seem to find the correct syntax that will allow this to work.

Thanks
Matt