Is there a way to vectorize this? (I tried with "cellfun", but did not succeed).
for i = 1:numel(a) s(i) = size(a{i}, 1);end
Where a sample of "a" is provided in attachment.
size cell array cellfun dimension
for i = 1:numel(a) s(i) = size(a{i}, 1);end
Best Answer