Too much memory being used while freeing up memory!

2 次查看(过去 30 天)
On a machine with 3GB of RAM:
K=rand(256,200000); % works perfectly with or without ; at the end
K(:,1)=[];
Out of memory. Type HELP MEMORY for your options.
In other words, simply removing a column of a large matrix, pushes the memory usage above the amount available, when in fact what I'm trying to do is free up some memory.
This is obviously just a sub-optimal MATLAB implementation. I am using 2014a. Does this same problem persist in later versions? If so, how shall I work around it?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by