Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mexCallMATLAB populating inputs
Date: Thu, 20 Aug 2009 16:30:20 +0000 (UTC)
Organization: Boeing
Lines: 24
Message-ID: <h6jtms$i6b$1@fred.mathworks.com>
References: <70c8e2ce-c34a-454e-8c40-d186e7aa61b4@s6g2000vbp.googlegroups.com> <709f10a0-f1f0-4d97-b564-bcc3acee355f@l35g2000vba.googlegroups.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1250785820 18635 172.30.248.37 (20 Aug 2009 16:30:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 20 Aug 2009 16:30:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:564807


John Harrold <john.m.harrold@gmail.com> wrote in message <709f10a0-f1f0-4d97-b564-bcc3acee355f@l35g2000vba.googlegroups.com>...
> On Aug 20, 5:34?am, "oruganti murthy" <omur...@yahoo.com> wrote:
> > Dear James,
> > I tried your recommendation and I am getting this strange result. Why?
> 
> 
> > >> mex demo2.c
> > >> b=demo2()
> >
> > b =
> >
> > ? ?-22
> >
> > >> mymfile([1 2 3 4])
> >
> > ans =
> >
> > ? ?-18
> 
> Use <=3 in the for loop instead of strictly <3.

Oops ... sorry about that.

James Tursa