memory - variable becomes undeclared after some iteration in matlab -
this question has answer here:
does matlab keep variables after clearing?
matlab: free memory lost after calling function
my question related post changes there.
i have use output (the outputs matrices generated, i.e. generating small matrices in every iteration) produced previous large program, in next iteration of large program, when using technique mentioned in post, getting error " reference cleared variable", need keep of variables , matrices generated. how that?
sometimes error occurs after 1 iteration
thanks
you can clear specific variables in workspace with:
clear myvarname you can clear functions might holding persistent variables with:
clear myfunname so - should work out ones don't want (type whos see variables in workspace, or in breakpoint) , clear ones don't need.
another option save ones want, use clear method mentioned, re-load.
Comments
Post a Comment