I have a script where I have to fill a vector like this example:
heads = (1:10);
vector_to_fill = zeros(1,5);
for i = 1 : heads
vector_to_fill(what index) = heads(i);
my problem is that I don't know what index putting to that vector_to_fill.how can I slide that vector correctly? If i put the same index as i I leave zeros between element.