From: Markus <peg_solitaire@gmx.de>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Obfuscation
Message-ID: <ef55232.7@webcrossing.raydaftYaTP>
Date: Wed, 9 May 2007 13:29:06 -0400
References: <ef55232.-1@webcrossing.raydaftYaTP> <ef55232.0@webcrossing.raydaftYaTP> <ef55232.2@webcrossing.raydaftYaTP> <ef55232.3@webcrossing.raydaftYaTP> <ef55232.5@webcrossing.raydaftYaTP>
Lines: 15
NNTP-Posting-Host: 84.160.250.33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:407949



Hi!

I am having the same problem with the bsxfun error message, as I am
running R2006a. The contest team did a good job in obfuscation, or
what do you think about these lines?

% mf = @(g,h) arrayfun(@(h)
all(inpolygon(c{1,g},c{2,g},c{1,h},c{2,h})),h);
% c = c(:,~(sum(bsxfun(mf,1:size(c,2),(1:size(c,2))'))>1))';

This source couldn't be easier to read I guess :-)

A good contest to all of you!

Markus