MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: Matrix Manipulation: deletion of rows and columns


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.




  • Prev by Date: A question about function
  • Next by Date: AW: Matrix Manipulation: deletion of rows and columns
  • Previous by thread: Re: Matrix Manipulation: deletion of rows and columns
  • Next by thread: Re: Matrix Manipulation: deletion of rows and columns