Matlab validating inputs with input parser