merging a double matrix within a cell array
显示 更早的评论
Hello,
I can't find the solution of merging a double matrix within a cell array:
A matrix m x n, C, where two contiguous elements within a
C=[1 5 3 7]
[2 6 4 8]
And in the Cell matrix D: D {1,:}= column headers D{:,1}= row headers
and therefore when merging C within D, each element in the cell will have two contiguous values from C, for example:
D {2,2} = [1 5] %first row and first two columns of C
D{3,4} = [4 8] %second row and last two columns of C
I am just trying to find a way to automate the merging.
Any input would be appreciated!
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 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!