How can I add three columns and three rows to a defined matrix?
3 views (last 30 days)
Show older comments
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 Comments
Torsten
on 21 Jan 2022
Edited: Torsten
on 21 Jan 2022
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.
Answers (1)
See Also
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!