MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Special Matrix

  • To: mathgroup at
  • Subject: [mg28239] Re: [mg28217] Special Matrix
  • From: BobHanlon at
  • Date: Fri, 6 Apr 2001 01:52:48 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

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 writes:

>I am trying to create a "n x n" matrix with "1" in every position exept
>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?

  • Prev by Date: Re:complex coefficients and rules...
  • Next by Date: Re: Help
  • Previous by thread: Re: Special Matrix
  • Next by thread: Re: Re: Special Matrix