Does Matlab has an internal cache for files?
显示 更早的评论
Hi all, i have the following issue. To check some code I have written in C++, i write the c++ data into a file that is called foo.m. In this file there is only one variable set, like "x= [1;2;3];". When i run foo.m in matlab it executes the script and writes the variable to the workspace. But as I run different tests, i delete the file foo.m, run the c++ code and the new foo.m is given.Now to my issue: When I delete the file foo.m, I can still execute the script for some time, even if it is not there. Additionally, when the new foo.m is given it sometimes still calls the old foo.m and loads that data. This can be seen when looking at variable x and into foo.m. Whsy does this happen?
To note: I am using Ubuntu 14.04 and Matlab R2012b.
Does anyone has an Idea why this happens and how to clear the "cache"? Is this a bug? Or is there a "zombie" file which matlab internally puts the data? I already tested pressing F5 to update the file list.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!