Re: Manipulating a matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg59342] Re: Manipulating a matrix
- From: Lee Newman <leenewm at umich.edu>
- Date: Sat, 6 Aug 2005 01:29:35 -0400 (EDT)
- References: <dcmuig$glg$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
This may not be most eloquent way to do it, but should work: m = Table[1, {4}, {4}] n = Length@m; m[[Range[2, n], Range[2, n]]] {{1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}, {1, 1, 1, 1}} {{1, 1, 1}, {1, 1, 1}, {1, 1, 1}} Ramier 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 > -- - Lee ____________________________________________________ L E E N E W M A N www.leenewman.org d o c t o r a l s t u d e n t c o g n i t i v e p s y c h o l o g y c o m p u t e r s c i e n c e u . m i c h i g a n a n n a r b o r ____________________________________________________ Skylarks singing- the farmer makes a pillow of his hoe. ISSA