MathGroup Archive 2004

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

Search the Archive

Re: Matrix Manipulation: deletion of rows and columns

  • To: mathgroup at smc.vnet.net
  • Subject: [mg49310] Re: Matrix Manipulation: deletion of rows and columns
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Tue, 13 Jul 2004 04:32:43 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/12/04 at 2:11 AM, mbekkali at gmail.com (Mukhtar) wrote:

>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.

Yes.

To get particular rows you can do m[[{j,k,...}]] where m is the matrix and j,k... are the rows desired.

To get particualr columns you can do m[[All, {j,k, ...}]] where j,k ... are now the desired columns

You also might want to look at the package LinearAlgebra`MatrixManipulation`
--
To reply via email subtract one hundred and four


  • Prev by Date: Sum of list elements
  • Next by Date: A question about function
  • Previous by thread: Matrix Manipulation: deletion of rows and columns
  • Next by thread: RE: Matrix Manipulation: deletion of rows and columns