Path: news.mathworks.com!not-for-mail
From: "Sadik " <sadik.hava@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: out of memory when using a breakpoint
Date: Mon, 19 Jan 2009 14:40:17 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <gl23ch$kmq$1@fred.mathworks.com>
References: <3951b89a-71a5-4e62-bf6d-d21b13b763c8@r37g2000prr.googlegroups.com>
Reply-To: "Sadik " <sadik.hava@gmail.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 1232376017 21210 172.30.248.35 (19 Jan 2009 14:40:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 Jan 2009 14:40:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1666517
Xref: news.mathworks.com comp.soft-sys.matlab:512470

exabwu <exabwu@googlemail.com> wrote in message <3951b89a-71a5-4e62-bf6d-d21b13b763c8@r37g2000prr.googlegroups.com>...
> Hello,
> 
> while running the code the normal way usually makes no problem I get
> an
> 
> ??? Error using ==> zeros
> Out of memory. Type HELP MEMORY for your options.
> 
> when I set a breakpoint within an function.
> 
> Rebooting the computer or restarting MATLAB doesn't help.
> 
> Many thanks, Ingo

Hello,

I believe you have written something like this:

zeros(10000) 

when you wanted to make up a column or row vector. The way to fix this is to say

zeros(10000,1);

Hope this helps.