Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Randomization_same number
Date: Fri, 6 Nov 2009 22:10:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <hd26rr$q78$1@fred.mathworks.com>
References: <hd249a$im2$1@fred.mathworks.com> <hd265a$e8e$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 1257545403 26856 172.30.248.35 (6 Nov 2009 22:10:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 6 Nov 2009 22:10:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1507699
Xref: news.mathworks.com comp.soft-sys.matlab:583138


>BUild the 120 element vector in a sorted order than use "randperm"
>
>The "randperm" will help you, but you need to postprocess the data to change duplicate >values on a single row. A swap should be good.
>
>http://www.advancedmcode.org/


Thanks for your reply. I think I should have mentioned that I must generate this vector a lot of times in the future, so it must me always different. :)

Thanks again