Submatrix sum (but just on a section)
1 次查看(过去 30 天)
显示 更早的评论
I have a square 4915x4915 matrix (189 countries, 26 sectors for each country and a row and column adjustment). Each country-sector group can be understood as a submatrix. I need to agregate some countries but maintaining the sectoral structure. For example, I need to sum up the elements between 4187:4914 rows and get a 26*4915 submatrix in that space and then repeat the procces for the colums, summing up from column 4187 to column 4914, getting a 4915*26 submatrix in that space, without chainging anythig else in the matrix.
Thanks in advance.
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!