Re: How to delete a row and a column in a matrix?
- To: mathgroup at smc.vnet.net
- Subject: [mg69725] Re: How to delete a row and a column in a matrix?
- From: "Raj" <rajanikanth at gmail.com>
- Date: Thu, 21 Sep 2006 07:31:38 -0400 (EDT)
- References: <eeqqlr$onu$1@smc.vnet.net>
Hi! Use the Part command in Mathematica to select the rows and columns that you want. Suppose the matrix is 4*4 by like this M = {{2, 2, 3, 4}, {2, 3, 4, 5}, {23, 4, 5, 5}, {2, 3, 4, 55}} then you can delete the first row and last column by saying Part[M, {2, 3, 4}, {1, 2, 3}] Raj hussain.alqahtani at gmail.com wrote: > Dear > > I am wondering how to delete a given row and column in a matrix in a > single command.? > > Your prompt reply is highly appreciated.