Hi there,
I have written this piece of code to store all the combination into a array of matrices.
for i=1:4, m = combnk(1:4,i) tester{i} = repmat(m,1)end
When I tested it separately, it works fine. But when I combined it with other code in my project, the matlab gave me warning regarding tester{i} = repmat(m,1): Cell contents assignment to a non-cell array object
Anybody can enlighten me on this issue? Thanks a million in advance!
Best Answer