Simulink rapid acceleration creates temp files which fill drive
1 次查看(过去 30 天)
显示 更早的评论
I set up a parfor-loop which simulates a Simulink-model, like in this tutorial: http://www.mathworks.de/de/help/simulink/examples/rapid-accelerator-simulations-using-parfor.html
It works great and fast, but each Sim Command executes a exe-File which writes the Simulation output (tout, yout) to a temp file like "oup5ec41494_5f3b_4a75_8e18_0978da1bc809.mat" in the "slprj\raccel\modelname"-folder.
The file is being deleted after evaluation, but only to windows trash, so after thousands of iterations (I use the parfor loop in a genetic algorithm), my hard disk drive is full (after creating 160GB temp files). Is there a possibility, to make matlab delete the temp files without trash?
I am using Matlab 2012b with Windows 7 x64.
0 个评论
采纳的回答
更多回答(1 个)
Ryan G
2013-12-4
What's your parfor loop look like? You might be able to do something like
parfor i = 1:100
eval(['myOutput' num2str(i) ' = sim(gcs)'])
%Not sure exact syntax, try not to use eval if possible
% Process algorithm here
delete(['myOutput' num2str(i)])
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!