Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

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

Search the Archive

Replacing part of a matrix by another

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5588] Replacing part of a matrix by another
  • From: "Lidar (Hamburger) dani" <dani at fh.huji.ac.il>
  • Date: Fri, 27 Dec 1996 01:59:01 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Given a matrix M and a smaller matrix L, what is an elegant way to replace a
submatrix of M by L, at some specified position {p,q}?

For example:

given:
M = Array[m,{5,5}]
L = Array[l,{2,2}]
{p,q}={2,3}

L should replace {{m[2,3],m[2,4]},{m[3,3],m[3,4]}}.

Thanks,
Dani




  • Prev by Date: re: RSolve question
  • Next by Date: 2d interpolation with irregularly spaced data
  • Previous by thread: errors in 3.0(beta) and 2.2
  • Next by thread: Re: Replacing part of a matrix by another