How can I add three columns and three rows to a defined matrix?
2 次查看(过去 30 天)
显示 更早的评论
I have a matrix 590x590 and I have to add three intermediate colomuns and three intermediate rows between the first and the second column/row of the original matrix and then other three rows and columns between the third and the fourth and so on. In other words I have to obtain a new matrix whose size is 1770x1770. How can I do it?
2 个评论
Torsten
2022-1-21
编辑:Torsten
2022-1-21
And the lengths of the inserted rows/columns change from time to time to keep the complete matrix square ?
E.g. the rows/columns that you add in the second step between the third and the fourth row/column of the original matrix (or between the third and the fourth row/column of the matrix you obtained from the first step ?) should already have length 593.
Maybe you should give a small example for clarification.
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!