If Statement In Lambda Function Matlab