Re: How to delete a row and a column in a matrix?

*To*: mathgroup at smc.vnet.net*Subject*: [mg69712] Re: [mg69676] How to delete a row and a column in a matrix?*From*: Bob Hanlon <hanlonr at cox.net>*Date*: Thu, 21 Sep 2006 07:30:29 -0400 (EDT)*Reply-to*: hanlonr at cox.net

m=Array[a,{3,4}]; To delete row 2 and column 3 Drop[Drop[#,{3}]&/@m,{2}] {{a[1, 1], a[1, 2], a[1, 4]}, {a[3, 1], a[3, 2], a[3, 4]}} Drop[#,{3}]&/@Drop[m,{2}] {{a[1, 1], a[1, 2], a[1, 4]}, {a[3, 1], a[3, 2], a[3, 4]}} Bob Hanlon ---- "hussain.alqahtani at gmail.com" <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. >