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