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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.