(I resume my question with a simple example) I want to create a struct in matlab/octave as follows
c(1).x = [0 1]; c(2).x = [0 1]; ... c(100).x = [0 1];
One way is to do an for cycle:
for i=1:100 c(i).x = [0 1]; end
My question is, how can avoid the cycle for? (The reason is that everybody knows that we need to avoid the for cycles on matlab).