MathGroup Archive 1999

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

Search the Archive

Re: Re: Replacing Part of a Matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20330] Re: [mg20267] Re: [mg20250] Replacing Part of a Matrix
  • From: "Andrzej Kozlowski" <andrzej at tuins.ac.jp>
  • Date: Fri, 15 Oct 1999 20:20:52 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

Although I only got the bit of your message you can see below I checked my
code realized that I had made a silly mistake. The correct code is of
course:

replaceInterior[a_, b_] :=
  Module[{c = a, l = Length[a]}, c[[Range[2, l - 1], Range[2, l - 1]]] = b;
c]


Andrzej Kozlowski
Toyama International University
Toyama, Japan
http://sigma.tuins.ac.jp
htp/:eri2.tuins.ac.jp

----------
>From: "Arnold Knopfmacher" <arnoldk at cam.wits.ac.za>
To: mathgroup at smc.vnet.net
>To: mathgroup at smc.vnet.net, "Andrzej Kozlowski" <andrzej at tuins.ac.jp>
>Cc: arnoldk at cam.wits.ac.za
>Subject: [mg20330] Re: [mg20267] Re: [mg20250] Replacing Part of a Matrix
>Date: Wed, 13 Oct 1999 15:40:05 GMT +2
>

> Andrzej,
> Your replaceInterior does not work
> _
> Change it to
> _
> Test them with say
> _
>
> Arnold Knopfmacher


  • Prev by Date: adding comments to a file in a different color
  • Next by Date: Page Breaks inside a cell
  • Previous by thread: Re: Replacing Part of a Matrix
  • Next by thread: Re: Re: Replacing Part of a Matrix