Optional Input Matlab Function Definition