I am calling C function from MATLAB using mex-files. The C function has a few static variables. I want to remove the static variables from the memory between consecitive calls to the C function. It is possible to do that without manually making all the variables in the C function 'non-static'. If there is a MATLAB command that clears the C memory, that will be very helpful.
Thanks.