Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!feed116.news.tele.dk!bofh.vszbr.cz!news.radio.cz!newsreader4.netcologne.de!news.netcologne.de!newsfeed.straub-nv.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: To compile several matrices in a matrix
Date: Mon, 05 Mar 2012 16:40:38 -0600
Organization: Aioe.org NNTP Server
Lines: 27
Message-ID: <jj3fd3$nip$1@speranza.aioe.org>
References: <jj3dk4$54q$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: wvy2DFHFkAwgV8/hmlxVIQ.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:759982

On 3/5/2012 4:10 PM, Sheri wrote:
> There are 300 matrices with same size (30,129).  I need to compile all
>these matrices in a matrix (9000,129).  How can I do that?
>


try repmat

EDU>> a=[1 2;3 4]
      1     2
      3     4

EDU>> N=3;
EDU>> C=repmat(a,[N,1])
      1     2
      3     4
      1     2
      3     4
      1     2
      3     4

in your case N will be 9000/30 or 300 and 'a' will be your 30 by 120 matrix

--Nasser