Logical Operations in Matlab Programming