How to concatenate the cell array that contain these table ?
1 次查看(过去 30 天)
显示 更早的评论
If I have 3 cell arrays, each cell contain 3 table such as Cell_1={X1,X2,X3}. Cell_2={Y1,Y2,Y3} and Cell_3={Z1,Z2,Z3}.
Moreover, the first column of table X1,Y1,Z1 are the same index.
In the same way, the first column of X2,Y2,Z2 are same index, the first column of X3,Y3,Z3 are same index.
I try to group data with same index into same cell. How to re-structure these table to get the outputs cell like this
cell_N1={vertcat(X1,Y1,Z1)}, cell_N2={vertcat(X2,Y2,Z2)} and cell_N3={vertcat(X3,Y3,Z3)}
0 个评论
采纳的回答
KSSV
2018-4-2
load X1.mat ;load X2.mat ;load X3.mat ;
load Y1.mat ;load Y2.mat ;load Y3.mat ;
load Z1.mat ;load Z2.mat ;load Z3.mat ;
cell_N1 = [X1 ; Y1 ; Z1] ;
cell_N2 = [X2 ; Y2 ; Z2] ;
cell_N3 = [X3 ; Y3 ; Z3] ;
更多回答(0 个)
另请参阅
类别
在 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!