Simulink Matlab Function Persistent