Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: -extract 120X9 matrix from 1000X9 matrix randomly
Date: Tue, 9 Feb 2010 16:45:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <hks3eh$46m$1@fred.mathworks.com>
References: <hks11k$ti$1@fred.mathworks.com> <hks31c$82t$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1265733905 4310 172.30.248.35 (9 Feb 2010 16:45:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 9 Feb 2010 16:45:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1931702
Xref: news.mathworks.com comp.soft-sys.matlab:605806


"Cygnine " <cygnine@remove.this.gmail.com> wrote in message 
> Lots of stuff

Sorry, I realized I made a mistake, part b should be

>> small_matrix = reshape(big_matrix(ceil(9000*rand([1080 1]))), [120 9]);

And the other answers provided seem as good, if not simpler.