Emser Pulse Function In Matlab Script