Create Array Using For Loop In Matlab Syntax For Logical If Statement