MATLAB: Delete entire row of an array

arraydeleterow

How can I remove the entire row if either value is less than 5:
Coord =
2 3
2 39
1 88
9 74
10 93
16 28
16 50

Best Answer

>> Coord = [2,3;2,39;1,88;9,74;10,93;16,28;16,50];
>> Coord(any(Coord<5,2),:) = []
Coord =
9 74
10 93
16 28
16 50