Java If Condition In Matlab