Just simply add an indexed variable to store all your result to variable
for i=1:n
% Store variable (i)= processed/function...
I(i,1)=i
I(i,2)=i*2
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!