Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Do stuff without colons
Date: Tue, 9 Dec 2008 21:16:02 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 19
Message-ID: <ghmn6i$5s0$1@fred.mathworks.com>
References: <ghmkpn$9ml$1@fred.mathworks.com> <ghml3n$eoe$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
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 1228857362 6016 172.30.248.35 (9 Dec 2008 21:16:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 9 Dec 2008 21:16:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:505962


"Matt" <mjacobson.removethis@xorantech.com> wrote in message <ghml3n$eoe$1@fred.mathworks.com>...
> "Pithawat " <tanvach+matlab@gmail.com> wrote in message <ghmkpn$9ml$1@fred.mathworks.com>...

> > b = randperm(100)(1:10);
> > 
> > This would really make my life so much easier!
> > 
> > Am I missing something here?
> > 
> > Pithawat
> 
> 
> b=ceil(100*rand(1,10));

You don't realize that this is NOT a valid
substitute for randperm? Worse, it does not
even address the question posed by the OP?

John