Cell contents assignment to a non-cell array object?
Afficher commentaires plus anciens
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!
2 commentaires
Adam
le 7 Mar 2015
Is tester pre-declared or is it just created and resized in the loop?
jessica xiang
le 7 Mar 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Coordinate Reference Systems dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!