dynare/matlab/erase_compiled_function.m

11 lines
280 B
Matlab
Raw Normal View History

function erase_compiled_function(func)
% erase compiled function with name 'func'
if exist([func '.dll'])
clear([func '.dll'])
delete([func '.dll'])
elseif exist ([func '.mexw32'])
clear([func '.dll'])
delete([func '.mexw32'])
end