Path: news.mathworks.com!not-for-mail
From: "Sourav Roy" <souravroy1@rediffmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: overcoming the limit of repmat
Date: Wed, 7 May 2008 03:43:03 +0000 (UTC)
Organization: Dawnay Day An Analytics Pvt Ltd
Lines: 20
Message-ID: <fvr8g7$sep$1@fred.mathworks.com>
Reply-To: "Sourav Roy" <souravroy1@rediffmail.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 1210131783 29145 172.30.248.35 (7 May 2008 03:43:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 7 May 2008 03:43:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1206306
Xref: news.mathworks.com comp.soft-sys.matlab:467059


Hi,
I tried the below code :- 
>> z = rand(1,(666),10000);
>> x = repmat(z,300,1);

The code gave the below error:- 

??? Maximum variable size allowed by the program is 
exceeded.

Error in ==> repmat at 97
    B = A(subs{:});

While this one worked, 

>> ab = z(:,:,1);
>> z = rand(1,(666),100);
>> x = repmat(z,300,1);

Kindly suggest how I can overcome this.