Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!r27g2000vbn.googlegroups.com!not-for-mail
From: John Harrold <john.m.harrold@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mexCallMATLAB populating inputs
Date: Wed, 19 Aug 2009 17:16:50 -0700 (PDT)
Organization: http://groups.google.com
Lines: 13
Message-ID: <494fa8a2-72c1-4c6a-a599-69269928edd2@r27g2000vbn.googlegroups.com>
References: <70c8e2ce-c34a-454e-8c40-d186e7aa61b4@s6g2000vbp.googlegroups.com> 
	<h6hufo$pg4$1@fred.mathworks.com>
NNTP-Posting-Host: 72.88.75.190
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1250727410 8800 127.0.0.1 (20 Aug 2009 00:16:50 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 20 Aug 2009 00:16:50 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r27g2000vbn.googlegroups.com; posting-host=72.88.75.190; 
	posting-account=22diBQoAAAAD5i1tJbtrsS2fX2hlob6K
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; 
	rv:1.9.1.2) Gecko/20090729 Firefox/3.0.5, Ant.com Toolbar 
	1.2,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:564611


On Aug 19, 6:31 pm, "James Tursa"
<aclassyguy_with_a_k_not_...@hotmail.com> wrote:
> You are making this particular example too hard. No need to make a copy of the input, just pass it on to the mexCallMATLAB as is. And no need to make a separate output variable, just use plhs directly. Try this:

I'm making this example hard because it's what I'm actually going to
have to do in my code. So I tried to provide a minimal example that,
once my question is answered, will enable me to accomplish what I want
to do. So to be a little more explicit:

What syntax in C would allow me to populate the prhs1 array such that
I could subsequently call the mexCallMATLAB function?