high physicial memory usage
显示 更早的评论
hello, I'm working with a script that does the folowing: 1. load a file (high reslolution audio file: 5 seconds long about 2.5mb) 2. run a apectrogram on the audio file 3. save the figure as a jpeg 4. repeat 1440 times. when i'm running the script, the physical memory that matlab is using keeps getting higher and higher untill it reaches 100% (about 35gb) and stops (crashes). my question is, why would the memory usage keep rising? and are there ways to fix this problme?
3 个评论
Guillaume
2018-4-3
Most likely it's a bug in your code where you keep growing an array instead of reusing it. Whatever it is though, it's impossible to tell without seeing your code.
ytzhak goussha
2018-4-3
编辑:Guillaume
2018-4-3
ytzhak goussha
2018-4-3
编辑:Guillaume
2018-4-3
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Creating, Deleting, and Querying Graphics Objects 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!