From: "John D'Errico" <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to generate random variable with constraint?
Date: Tue, 20 Jul 2010 18:40:34 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 16
Message-ID: <i24qj2$pi6$>
References: <i22vhv$frn$> <i24er8$7qs$> <Jbj1o.16614$Bh2.16201@newsfe04.iad> <i24fnn$6pu$> <YKj1o.92592$Lj2.82402@newsfe05.iad> <i24i60$gfp$> <i24l9s$auq$> <i24oic$env$>
Reply-To: "John D'Errico" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1279651234 26182 (20 Jul 2010 18:40:34 GMT)
NNTP-Posting-Date: Tue, 20 Jul 2010 18:40:34 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: comp.soft-sys.matlab:654679

"Matt J " <mattjacREMOVE@THISieee.spam> wrote in message <i24oic$env$>...
> "John D'Errico" <> wrote in message <i24l9s$auq$>...
> > I don't even see the sort as more complex, nor does
> > MATLAB. Try this:
> ===========
> That's only because you're working in 2 dimensions. In higher dimensions, complexity theory of sorting vs. summation gaurantees that sorting will do worse. Try this modification: 

No, if you bothered to look at my test, it was done
in 5 dimensions. Yes, if you solve a very different
problem from that which was asked about, the time
will be different.