Please guide me.
a = [1,0,1;1,1,0;1,1,1]; b = [0,1;1,0]; allcomb = [];
When I run this below command
cell2mat(allcomb(num2cell(a,2),num2cell(b,2)))
I have error "Function 'subsindex' is not defined for values of class 'cell'."
cell arrays
a = [1,0,1;1,1,0;1,1,1]; b = [0,1;1,0]; allcomb = [];
cell2mat(allcomb(num2cell(a,2),num2cell(b,2)))
Best Answer