matlab:Error:Function definitions are not permitted in this