|
|
out of memory #39
Hi,
>> close all;
>> z=zeros(601,601,7)
??? Out of memory. Type HELP MEMORY for your options.
>> 601*601*7*8
ans =
20227256
why?
Mike
|
|
0
|
|
|
|
Reply
|
sulfateion (350)
|
10/27/2011 12:23:54 PM |
|
Mike <sulfateion@gmail.com> wrote in message <35e3e806-a642-42cb-b990-9fc7b0ba80c1@m5g2000prg.googlegroups.com>...
> Hi,
>
> >> close all;
> >> z=zeros(601,601,7)
> ??? Out of memory. Type HELP MEMORY for your options.
>
> >> 601*601*7*8
>
> ans =
>
> 20227256
>
> why?
>
> Mike
may be because you have loaded some variables into your workspace. type this;
clear all
also clear the workspace and then run your program again. it should not give this message again
|
|
0
|
|
|
|
Reply
|
salmanabdullah9 (206)
|
10/27/2011 12:33:10 PM
|
|
"Mike" <sulfateion@gmail.com> wrote in message
news:35e3e806-a642-42cb-b990-9fc7b0ba80c1@m5g2000prg.googlegroups.com...
> Hi,
>
>>> close all;
>>> z=zeros(601,601,7)
> ??? Out of memory. Type HELP MEMORY for your options.
Assuming you're using the built-in ZEROS function and not one that you or
someone else has written that shadows the built-in function (you can check
this with the WHICH function) such a matrix would require:
>> numElements = 601*601*7;
>> bytes = numElements*8;
>> mb = bytes/(1024^2)
mb =
19.2902
under 20 MB of memory. That's not a lot, which suggests that your memory may
be extremely fragmented and so MATLAB can't get a contiguous block of
19.29... MB of memory. Take a look at sections 2 and 3 in this document for
information on how you can check this and how to correct that problem.
http://www.mathworks.com/support/tech-notes/1100/1106.html
--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
|
|
0
|
|
|
|
Reply
|
slord (13276)
|
10/27/2011 1:14:48 PM
|
|
On Oct 27, 9:14=A0pm, "Steven_Lord" <sl...@mathworks.com> wrote:
> "Mike" <sulfate...@gmail.com> wrote in message
>
> news:35e3e806-a642-42cb-b990-9fc7b0ba80c1@m5g2000prg.googlegroups.com...
>
> > Hi,
>
> >>> close all;
> >>> z=3Dzeros(601,601,7)
> > ??? Out of memory. Type HELP MEMORY for your options.
>
> Assuming you're using the built-in ZEROS function and not one that you or
> someone else has written that shadows the built-in function (you can chec=
k
> this with the WHICH function) such a matrix would require:
>
> >> numElements =3D 601*601*7;
> >> bytes =3D numElements*8;
> >> mb =3D bytes/(1024^2)
>
> mb =3D
>
> =A0 =A019.2902
>
> under 20 MB of memory. That's not a lot, which suggests that your memory =
may
> be extremely fragmented and so MATLAB can't get a contiguous block of
> 19.29... MB of memory. Take a look at sections 2 and 3 in this document f=
or
> information on how you can check this and how to correct that problem.
>
> http://www.mathworks.com/support/tech-notes/1100/1106.html
>
> --
> Steve Lord
> sl...@mathworks.com
> To contact Technical Support use the Contact Us link onhttp://www.mathwor=
ks.com
Thanks for the reply.
I remember I 'clear all'. There is no out of memory now.
Mike
|
|
0
|
|
|
|
Reply
|
sulfateion (350)
|
10/29/2011 7:02:04 AM
|
|
|
3 Replies
41 Views
(page loaded in 0.315 seconds)
Similiar Articles: prstat -a vs. vmstat - comp.unix.solaris... server, running several java application servers, that is probably running out of memory. ... de sr s6 s3 s9 s9 in sy cs us sy id 0 0 0 18082272 2575072 55 126 123 39 ... gdb (linux) "print" command clears memory corruption - so how do I ...This is not > the usual non-initialised memory problem ... Since you are running Linux, I'd suggest you try out ... On Thu, 04 Dec 2003 08:39:53 -0800, Paul Pluzhnikov ... VPN client disconnects - comp.dcom.sys.cisco... Version 7.2(4) Device Manager Version 5.2(4) Compiled on Sun 06-Apr-08 13:39 ... happens and seeing what is happening with the firewall, > > perhaps out of memory? comp.unix.solaris - page 79IP MULTIPATHING 0 97 (8/20/2003 2:39:55 PM) Hello, I have 8 qfe card on a system ... screen saver, the machine slowly but surely gets to the point where it runs out of memory ... Creating 1-bit PCX graphic files? - comp.os.os2.multimedia ...... 12/11/2009 10:39:19 PM ... pipe data would need to be copied initially which might lead to an early out-of-memory ... vmstat, freememory, sharedmemory, buffer cache, pageout question ...Why the system will be paging out when there is still plenty of free memory about 7GB? ... 1 0 0 0 6140 30742 9697 22 9 69 0 4 0 4861800 7410728 39 91 ... How can glClear cause application crashes? - comp.graphics.api ...... cause a crash (probably overwriting a portion of memory it ... is some code lines before, and if it fails, I bail out ... Reply: Wolfgang: 9/27/2007 9:39:56 PM Matlab GUIDE stability issue - comp.soft-sys.matlabEven if 1-39 have been closed. After using visual studio to code a user ... How to ... memory are vital system resources providing stability and ... on out of memory ... How to check whether malloc has allocated memory properly in case ...One issue might be that, if you call malloc(0) enough times, you can run out of memory! ... 12/16/2010 3:39:31 PM Writing to Video Memory - comp.lang.asm.x86Reply: Pascal: 2/7/2007 10:33:39 AM ... with ds:si = address of ASCIIZ string to print out ... Scan Rate - comp.unix.solaris The system has run out of memory a ... Out of memory at line: 39.? - Yahoo! AnswersBest Answer: You should try reinstalling it and if things don't turn out right you could always use another internet browser such as mozilla firefow or ... Out of memory at line: 39It's probably a resource issue. Resources are limited Look here to see what resources are, and what you CAN do about it. http://www.aumha.org/a/resource.htm 7/30/2012 6:14:02 AM
|
|
|
|
|
|
|
|
|