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

Setting parts of matrices

  • Subject: [mg2907] Setting parts of matrices
  • From: jnygaard at math.uio.no (Jens Olav Nygaard)
  • Date: 9 Jan 1996 04:02:26 -0600
  • Approved: usenet@wri.com
  • Distribution: local
  • Newsgroups: wri.mathgroup
  • Organization: University of Oslo, Norway
  • Sender: mj at wri.com

Can somebody tell me how to set a submatrix of a larger matrix?
Assume a is a larger matrix than b. I would like to do something
like

  a[[Range[i1,i2],Range[j1,j2]]]=b;

Unfortunately, this does not work, and the Mathematica-book of
Wolfram doesn't tell me how to do it. It just says that

  a[[Range...

is the way to *extract* things from a matrix.


Jens Olav Nygaard


  • Prev by Date: Groebner bases in Weyl Algebras
  • Next by Date: run in background
  • Previous by thread: Setting parts of matrices
  • Next by thread: Re: Setting parts of matrices