Is there anyway to declare variables immune to clear all in MatLab?
One solution I thought of was saving the variables and reopening them whenever I need them.
Can anyone think of a more elegant solution?
EDIT: Let me explain my problem a bit more thouroughly, which I should have done in the first place; sorry for that.
I have to run a few routines using some "black box" intermediate code (some of which may be mex files). It would be good to assume that I cannot dwell into these codes. I could alter some of them, but that would be costly; for example, I don't know where the clear all is happening. I know I may be asking for too much, but you never know.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…