RE: Matrix Manipulation: deletion of rows and columns

*To*: mathgroup at smc.vnet.net*Subject*: [mg49300] RE: [mg49299] Matrix Manipulation: deletion of rows and columns*From*: "Florian Jaccard" <florian.jaccard at eiaj.ch>*Date*: Tue, 13 Jul 2004 04:32:31 -0400 (EDT)*Reply-to*: <florian.jaccard at eiaj.ch>*Sender*: owner-wri-mathgroup at wolfram.com

If you want to delete the rows 2 and 4, and the columns 6 and 17 , you can do it like this : In[1]:= matr=Table[a[i,j],{i,1,20},{j,1,20}] In[2]:= matr2=Delete[matr,{{2},{4}}] In[3]:= matr3=Delete[Transpose[matr2],{{6},{17}}]//Transpose Regards F.Jaccard -----Message d'origine----- De : Mukhtar [mailto:mbekkali at gmail.com] Envoyé : lun., 12. juillet 2004 08:12 À : mathgroup at smc.vnet.net Objet : [mg49299] Matrix Manipulation: deletion of rows and columns Is there a way to delete rows or/and columns of a matrix, say delete rows 2,4 and 6,17 of 20x20 matrix and form a new matrix from the remaining rows and columns.