From: websiteng <website.ng@gmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: MATLAB Programming Contest
Message-ID: <ef472c3.5@webcrossing.raydaftYaTP>
Date: Wed, 29 Nov 2006 11:50:13 -0500
References: <ef472c3.0@webcrossing.raydaftYaTP> <ef472c3.1@webcrossing.raydaftYaTP> <ef472c3.2@webcrossing.raydaftYaTP> <ef472c3.3@webcrossing.raydaftYaTP> <ef472c3.4@webcrossing.raydaftYaTP>
Lines: 17
NNTP-Posting-Host: 158.182.1.36
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:381068



when dealing with bounary cases, do you think the definitions of
'deflection' and 'reflection' are a little bit confusing?

Thinking about these cases:

For the pictorial example in the rule page, if you shine a beam from
the bottom(1st column) as [r,c,s] = beam(0,-1), what you will get for
r c s?

or, you may test the first test example in the testsuite by shining a
beam from the top (first column again) as [r,c,s]=beam(0,1), while
there is a '6' at position (1,2). I might inteprete that a
'deflection' will happen, since by definition "if the laser passes
right next to an object, it is deflected 90 degrees as shown above."
However, the returned result from beam() will be [r=0,c=1,s=6], which
has no such effect of "deflected 90 degrees" at all, but is more
likely a 'reflection'.