Hi, I am wondering how to add up the sizes of cell arrays for each "class." The "classes" are part of a loop. I need to be able to index each sum into j.
for j = 1:NumberOfClasses sizeOfCellArray{j} = size(CellArray{j}) sum(j) = sizeOfCellArray(j).*sizeOfCellArray(j+1)end
I know that this is wrong, because sizeOfCellArray(j+1) gets an error (Index exceeds matrix dimensions), but am I on the right track?
Best Answer