Prev: if you choose this bag you will ged a lop top
Next: Gucci sale-Gucci outlet store-Cheap Gucci Bags-Handbags,40% off,Free Shipping Tax Free!
From: Craig on 13 Jul 2010 01:42 I get the error message : Maximum variable size allowed by the program is exceeded. for the command : zeros(100000) The command : zeros(20000) gives : Out of memory. Type HELP MEMORY for your options. I can't possibly imagine that I don't have 800 KB of memory available. I even get this after rebooting my pc and starting a clean copy of matlab with nothing in the workspace. I've searched the forum, but it seems like everyone else getting this error is trying to allocate an insanely large array on the order of several GB. Thanks for any help The output from "memory" is : >> memory Maximum possible array: 1298 MB (1.361e+009 bytes) * Memory available for all arrays: 1555 MB (1.631e+009 bytes) ** Memory used by MATLAB: 255 MB (2.679e+008 bytes) Physical Memory (RAM): 2939 MB (3.082e+009 bytes) * Limited by contiguous virtual address space available. ** Limited by virtual address space available.
From: Rodney Thomson on 13 Jul 2010 01:56 "Craig " <cpp6f(a)virginia.edu> wrote in message <i1gubc$itg$1(a)fred.mathworks.com>... > The command : > zeros(20000) > gives : > Out of memory. Type HELP MEMORY for your options. > > I can't possibly imagine that I don't have 800 KB of memory available. I can't imagine that either. But I can certainly imagine that you do not have 3.2 GB of memory available. zeros(n) returns a zero-d array of size n x n. So 20000x20000x8 = 3200000000 bytes!
From: Rodney Thomson on 13 Jul 2010 01:58
It should go without saying, but I will say it anyway: blah = zeros(20000,1); % for a column vector or blah = zeros(1, 20000); % for a row vector Cheers Rod |