Matrix: remove row and column

Jul 11, 2013 at 3:45pm
Hi,

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
Jul 11, 2013 at 5:45pm
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.
Jul 11, 2013 at 6:08pm
Out of interest, how are you storing your array data?

Andy

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.