Suppose I’m using the MATLAB IDE and happen to have some very large objects in my workspace (e.g. arrays of 500k+ elements). Now, suppose that I stupidly and accidentally double click on one of these very large variables, which triggers a load to the array editor. Unfortunately, with arrays this big, MATLAB just hangs.
I’ve tried CTRL+C, CTRL+BREAK, CTRL+D, but none seem able to interrupt the behavior of the IDE. I know I can force matlab to quit, but reading all of those variables into the workspace in the first place takes a lot of time, and I may have unsaved changes in an editor window, etc.
I found a way, but it’s not the best, it requires a change of path and back once to get a handle to the original
openvargetting that handle is the biggest problem, calling it is just fine. If
openvarwould be built in, you could use the function builtin:but this is unfortunately not the case 🙁
str2func in combination with the complete path also doesn’t work, at least I don’t get it to work…