Arduino Exit Void Function In Matlab