MathGroup Archive 1999

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

Search the Archive

Re: Matrix Manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16473] Re: [mg16389] Matrix Manipulation
  • From: Jurgen Tischer <jtischer at col2.telecom.com.co>
  • Date: Sat, 13 Mar 1999 02:22:08 -0500
  • Organization: Universidad del Valle
  • References: <199903110716.CAA12344@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

APF,

mm[[ {1,3} , {1,3} ]]=msub

Jurgen

Andreas Paul Friedrich Bernhard wrote:
> 
> I am trying to modify the elements of a submatrix in a matrix, without
> having to replace each element explicitly
> 
> for example:
> mm   = { {1,2,3}, {4,5,6}, {7,8,9} }
> msub      = { {21,22}, {23,24} }
> I now wish to add the sub matrix: to positions (1,1),(1,3),(3,1),(3,3)
> 
> I have tried using ReplacePart but it does not recognize the
> multidimensional replacement, I have also tried
> mm[ {{1,3} , {1,3}} ]  = mm[ {{1,3} , {1,3}}]  + msub
> 
> but this crashes horribly
> 
> Thanks
> AndyIII
> 
> --
>                                 -------
> What is man without the beasts, If all the beasts were gone,
> Man would die from great loneliness of Spirit.
> For whatever happens to the beasts, soon happens to man. - Chief Seattle
>                                 -------
> 
> ****************************************************
> *   Andreas P.F. Bernhard                          *
> *   Aerospace Department, University of Maryland   *
> *   College Park, MD 20742                         *
> *   bernhard at Glue.umd.edu                          *
> *   Fax: (301) 314-9001, Tel: (301) 405-1141       *
> ****************************************************


  • Prev by Date: Re: planar polygon plot
  • Next by Date: Re: Subscripted Variables
  • Previous by thread: Matrix Manipulation
  • Next by thread: Re: Matrix Manipulation