FirstCell = num2cell(randi(9, 15, 9), 2);
SecondCell = num2cell(randi(9, 15, 9), 2);
size(FirstCell)
size(FirstCell{1})
output = cellfun(@(a,b) [a;b], FirstCell, SecondCell, 'uniform', 0);
size(output)
size(output{1})
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!