Skip to main content
typos
Link
Roman
  • 49.8k
  • 2
  • 57
  • 131

How to replace the entries of thea matrix by another matirxmatrix?

edited title
Link
user64494
  • 29.1k
  • 4
  • 29
  • 56

How to replace the entries of the matrix by another matirx?

Bumped by Community user
Source Link
acoustics
  • 1.7k
  • 10
  • 20

How to replace the entries of the matrix by another matirx

I have a two matrix mm and nn. Matrix mm is of dimension 8 cross 8 and nn is of dimensions 4 cross 4. I want to replace the first four rows and columns in mm by nn. How to do this?

mm = ConstantArray[q, {8, 8}]
nn = ConstantArray[r, {4, 4}]