See here. C = { ... rand(100,2) rand(150,2) rand(130,2) rand(50,2); ... rand(110,2) rand(120,2) rand(310,2) rand(10,2); ... rand(130,2) rand(115,2) rand(110,2) rand(40,2); ... }; C = [100x2 double] [150x2 double] [130x2 double] [50x2 double] [110x2 double] [120x2 double] [310x2 double] [10x2 double] [130x2 double] [115x2 double] [110x2 double] [40x2 double]
To access (1,2) of C, C12 = C(1,2); % [150x2 double] To access 2nd row/column of C, Crow2 = C(2,:); Ccolumn2 = C(:,2);
To concatenate row/column, Vrow2 = cell2mat(Crow2(:)); Vcolumn2 = cell2mat(Ccolumn2(:));