Timeline for Place matrix into a larger matrix filled with zeros
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 30, 2021 at 6:47 | vote | accept | mathisfun_ | ||
Mar 30, 2021 at 0:00 | history | tweeted | twitter.com/StackMma/status/1376685605325836294 | ||
Mar 29, 2021 at 16:28 | history | became hot network question | |||
Mar 29, 2021 at 14:30 | answer | added | kglr | timeline score: 3 | |
Mar 29, 2021 at 9:56 | answer | added | Roman | timeline score: 6 | |
Mar 29, 2021 at 9:09 | comment | added | Henrik Schumacher |
You can also do A = ConstantArray[0,{5,5}]; A[[1;;2,3;;5]]+=M . This might be helpful for assembling a matrix from several overlapping submatrices.
|
|
Mar 29, 2021 at 8:37 | comment | added | chris |
indeed something like this? M = {{1, 1, 0}, {1, 0, 0}}; ArrayFlatten[{{0, M}, {0, Array[0 # &, {3, 3}]}}]
|
|
Mar 29, 2021 at 8:33 | comment | added | yarchik | Is it helpful mathematica.stackexchange.com/q/761/9469 ? | |
Mar 29, 2021 at 8:18 | history | asked | mathisfun_ | CC BY-SA 4.0 |