I have a cell array C = {[1 2 3],[4 5 6],[7 8 9] }.
How do I use this cell array as input argument for a function?
function B = merge(C)for i = 1:3 for j = 1:3 if i<j B = [C{i};C{j}] end endend
Thanks!
cell arrayfunction
function B = merge(C)for i = 1:3 for j = 1:3 if i<j B = [C{i};C{j}] end endend
Best Answer