Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: What is the largest character array that MATLAB can hold?
Date: Sat, 7 Feb 2009 19:22:02 +0000 (UTC)
Organization: Erasmus MC
Lines: 21
Message-ID: <gmkn0p$b3u$1@fred.mathworks.com>
References: <gmkkta$r6u$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234034522 11390 172.30.248.37 (7 Feb 2009 19:22:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Feb 2009 19:22:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870065
Xref: news.mathworks.com comp.soft-sys.matlab:516830


"Thiago " <thiago@mathworks.com> wrote in message <gmkkta$r6u$1@fred.mathworks.com>...
> What is the largest character array (i.e. string) that MATLAB can hold? Or, is it just a matter of computer memory?
> 
> Thanks!

You may have to wait for a while ....

% Don't try this at home ...
c = '' ;
try
  while(1)
     c = [c 'x'] ; % increase the string
    pause(0.001) ; % allow for Ctrl-C
  end
catch
  disp(length(c)) ;
end



Jos