How To Create A Logical Array Matlab