Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: combining arrays
Date: Sat, 2 Oct 2010 23:23:06 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <i88esq$1r5$1@fred.mathworks.com>
References: <i882sb$hfj$1@fred.mathworks.com> <i8898n$5fp$1@fred.mathworks.com> <i88e2f$9ff$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1286061786 1893 172.30.248.38 (2 Oct 2010 23:23:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 2 Oct 2010 23:23:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2264149
Xref: news.mathworks.com comp.soft-sys.matlab:675357

oops...should have had

A3 = unique(ceil(n*rand(22,1)));

as

A3 = unique(ceil(n*rand(20,1)));

to be consistent, but you get the idea...