Visual Basic Code If Function Matlab Example