How to insert a matrix in the middle of another (increasing size) while maintaining row-column relationships between elements of old matrix

后端 未结 0 1969
谎友^
谎友^ 2021-01-14 10:12

Suppose we have a matrix A,

A=[
   a 0 0 b
   0 c d 0
   0 e f 0
   g 0 0 h
  ]

I would like to have an efficient and general way to add some

相关标签:
回答
  • 消灭零回复
提交回复
热议问题