I had a square matrix typed dynamically, correctly allocated

```
double **matrix;

```

I want to delete a "x" row and "x" column from that matrix, in a way like that:

```
SOURCE MATRIX:
1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16

```

I want to remove, for example, the 2nd row/column. The output had to be like this:

```
FINAL MATRIX:
1 3 4
9 11 12
13 15 16

```

I've tried to write down and test many algorithms, without success.
How can I do?