Matrix: remove row and column


I suppose to have the following matrix A) and I want to remove a generic row and column.
For instance the second row and column, then I get B). How can I realize it in C? I cannot figure out how to do.

A) B)
a00 a01 a02 a00 a02
a10 a11 a12 a20 a22
a20 a21 a22

Thank you
If you have two two-dimensional arrays A and B you can simply copy elements of A in B excluding elements belonging to the second row and column.
Out of interest, how are you storing your array data?


PS having you two matices next two each other doesn't make for readability. You could edit your post to list then one at a time?
Topic archived. No new replies allowed.