Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Fall 2009 MATLAB Contest, November 4th-11th
Date: Wed, 4 Nov 2009 19:15:18 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 28
Message-ID: <hcsjs6$8im$1@fred.mathworks.com>
References: <hcmvti$4je$1@fred.mathworks.com> <hcsdku$7vg$1@fred.mathworks.com> <hcshmq$n7a$1@fred.mathworks.com> <hcsiie$guh$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 1257362118 8790 172.30.248.35 (4 Nov 2009 19:15:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 19:15:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2077132
Xref: news.mathworks.com comp.soft-sys.matlab:582492


"Doug Hull" <hull@mathworks.SPAMPROOFcom> wrote in message <hcsiie$guh$1@fred.mathworks.com>...
> "Sergey" <ivssnn@yahoo.com> wrote in message <hcshmq$n7a$1@fred.mathworks.com>...
> > It looks like solver function is called not as
> > 
> > colors = solver(A,[targetRow targetColumn])
> > 
> > but as 
> > 
> > colors = solver(A,targetIndex)
> > 
> > is it correct?
> > 
> > SY
> 
> Everyone,
> 
> Sorry about that.  I wrote the contest code in absolute indexing, and then changed it to match the rules.  I pushed the absolute indexing version accidentally.  My bad.
> 
> We just modified the rules to match the contest suite as it is on the File Exchange.  Looks like some of the early entries figured it out and are doing well.  Use ind2sub to convert to row column if you happen to need it.
> 
> sorry,
> Doug

I changed , the opening line of solver as:
function colors = solver(A,[targetRow targetColumn])
Is this fine or do we need to use: function colors = solver(A,targetRowAndColumn) and then use 'ind2sub'?

mavs