Re: Manipulating a matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg59255] Re: [mg59212] Manipulating a matrix
- From: Adel Elsabbagh <aelsabbagh at gmail.com>
- Date: Wed, 3 Aug 2005 01:19:57 -0400 (EDT)
- References: <200508020442.AAA16742@smc.vnet.net>
- Reply-to: Adel Elsabbagh <aelsabbagh at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
try:
m = m[[Range[2, n], Range[2, n]]]
in general if you want to drop the i1,i2,...in rows and j1,j2,...jn
columns write:
m = m[[Drop[ Range[n],{i1,i2,...,in} ], Drop[ Range[n],{j1,j2,...,jn} ] ]]
- Adel Elsabbagh
On 8/2/05, Ramier <wissam2 at online.fr> wrote:
> Hello everyone,
>
> I think that my question is rather simple and maybe I ought to go
> deeper into Mathematica book:
> I have a n x n matrix and I'd like to remove the first line and the
> first column in order to get the (n-1)x(n-1) matrix with the entries
> remaining. Is there a simple way to do that ?
>
> Perhaps my question is really simple or idiot but I've never used
> Mathematica before.
>
> Thanks a lot,
>
> Wissam
>
>
--
Adel Elsabbagh
- References:
- Manipulating a matrix
- From: "Ramier" <wissam2@online.fr>
- Manipulating a matrix