You forgot to index your output. Your loop variable is used nowhere in your loop, so it repeats the same calculation each and every time.
What is it you want to do? Which variable do you want to index? A small example of how to create a loop that saves its output for every iteration is the code below.
a=zeros(10,1);%pre-allocate a vector to store results
for n=1:numel(a)
data=rand(1,4);%generate random data
data=sum(data);%do something with that data
a(n)=data;%store it in the vector
end
