Re: Special Matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg28239] Re: [mg28217] Special Matrix
- From: BobHanlon at aol.com
- Date: Fri, 6 Apr 2001 01:52:48 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
n = 7; Transpose[Table[1,{n},{n}]/.(sub={1,x__,1}:>{0,x,0})]/.sub Bob Hanlon In a message dated 2001/4/5 3:16:30 AM, syftech at saad.org.il writes: >I am trying to create a "n x n" matrix with "1" in every position exept >in >first and last row, and first and last coulumn, where "0" is needed. In >other words: sqare matrix full of "1" sorounded by "0". >What will be the fastest and shortest way to do it?