>> A = [1, 2, 3; 4, 5, 6; 7, 8, 9]

A =

1     2     3
4     5     6
7     8     9

>> A(2, :) = []

A =

1     2     3
7     8     9

>> A = [1, 2, 3; 4, 5, 6; 7, 8, 9]

A =

1     2     3
4     5     6
7     8     9

>> A(:, 2) = []

A =

1     3
4     6
7     9