Does MATLAB keep some variables after clearing?
Matlab: Free memory is lost after calling a function
My question is related to this post but some changes are there.
I have to use the output (the outputs are matrices generated, i.e. i am generating small matrices in every iteration) produced by previous large program, in my next iteration of large program, so when i am using the technique mentioned in the post, i am getting error that " Reference to a cleared variable", i need to keep some of the variables and some matrices generated. How to do that?
Sometimes the error occurs after 1 iteration only
Thanks