function TestPersistent

% Function to test persistent variables

persistent RemCount
if isempty(RemCount)
    RemCount = 0
end
RemCount = RemCount + 1