C={ {[36 16 1 16 36] [20 12 2 12 22] [13 43 33 3 33 43 13] [19 4 19] [40 20 5 20 40] [26 16 6 16 26] [17 47 37 7 37 47 17] [23 8 23]} {[1 2 3 ] [4 5 6 7 8 9] [ 10 11 12 13 14 15 16 17 ] [18 19 20 21 22] [23 24 25 26 27 28 29] [30 31 32] [33 34 35 36 37] [38 39 40 41 42]} {[10 20 30 40 55 ] [66 77 88 99 111 122 133] [ 144 155 166 ] [177 188 199] [222 233 244 255 266 ] [277 288 299 333 344 ] [355 366 377] [388 399 411 422 433]} };
Tried using
U=cell2mat(C); Result = mat2cell(U, c*ones(1,2), 4); Error using cell2mat (line 52) CELL2MAT does not support cell arrays containing cell arrays or objects.
Is there another function to do this? And how to do it for 10×1 {401×1300} to 401x {10×1300}?
Best Answer