HELLO,
I have a cell matrix B (1 * 67 cell), each cell contains a matrix of type N * N C is a cell matrix of type 1 * 67 cell, each cell contains a matrix of type 1 * M I want to fill A from B by respecting the column number indicated in C
for j=1:67A{j}=B{j}(:,C);enderror Function 'subsindex' is not defined for values of class 'cell
EXEMPLE for a cell of the matrix
B'= 1 5 3 4 5 6 9 14 5 6 7 8 9 8 97 8 9 6 5 4 1 29 8 7 6 5 4 5 61 2 3 4 5 6 1 29 8 7 6 5 4 2 37 5 8 8 6 9 7 8C'= 2 7 8So A'=5 9 15 8 98 1 28 5 62 1 28 2 35 7 8
I'm trying to convert the cell matrix into a table matrix
Tabl= cell2table(B);Ta = cell2table(C);A=Tabl(:,Ta);error using "Table variable subscripts must be real positive integers, logicals, strings, or cell arrays of strings."
Do you have an idea
thank you in advance
Best Answer