MATLAB - How to force a specific variable to be stored in memory?
1 次查看(过去 30 天)
显示 更早的评论
I have a cell array of classifiers (for example, decision trees) trainmodel = cell(1,100000). And sometimes this thing gets really big, so is there any way to tell MATLAB that if this variable is too big, just store it in the memory? Of course I can use matfile, but the thing is that if it's not too big then it would be slower. Please help me, thank you very much.
1 个评论
James Tursa
2017-2-13
Store it in what memory? For normal variables, they are already stored in memory the instant they are created. Are you running out of memory? Or having speed/throughput issues?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Performance and Memory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!