Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Run out of memory
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
HugoMalagon Malagon

Posts: 2
Registered: 4/4/12
Run out of memory
Posted: Apr 4, 2012 10:58 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello Matlabers,

I am having a little problem. I need to play a pure tone (in a loop). I am using the command "sound". The duration of the tone can vary from iteration to iteration, therefore I am crreating a 10 min length sound and then just sttoping it with "clear playsnd"... it could be a little abrupt, but I do not know other way. The point is that in every iteration, the RAM and the virtual memory are being used more and more till it is "Out of Memory" and it stops... from there, the only solution seems to close and open again matlab; I have tried to clear all and everything, but it is only closing and opening again that solve it. Anyway, the main problem is that it is running out of memory and I cannot continue with the script. I have tryed to store the variable and then call it everytime... but it is taking a lot of time; I also tried to created it everytime before I am playing the sound, but it
is also a not good solution for me. The last thing I tried was to create a very short time pure tone and concatenated with "repmat" just before... in order that, after the tone is played I can erase it... believing that it would free the memory... but again, it was "Out of memory".

I do not know what to do. Is there any possibility to free the accumulation of RAM and Virtual memory without completly reseting the matlab?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.