Hi guys, I just have this matrix: 0010-0111-0101-1101….. and I want to create a vector with the following condition: if sum of columns 1 and 2 >=1 AND if sum of columns 3 and 4=>1 then column 5=1, otherwise column 5= 0.

# MATLAB: Creating a conditional vector

conditional vector

###### Related Question

- Logical operation on column of a matrix
- Conditional Plotting
- Conditional logic inside conditional logic
- Function to solve a binary matrix
- Calculation of conditional expectations
- How to reverse a matrix from bottom to top row wise and then pick out odd rows
- Using conditional IF statement
- Making IF conditional sentance.

## Best Answer