Cell contents assignment to a non-cell array object?
Mostra commenti meno recenti
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 Commenti
Adam
il 7 Mar 2015
Is tester pre-declared or is it just created and resized in the loop?
jessica xiang
il 7 Mar 2015
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Coordinate Reference Systems in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!