title: Time loop - store vector data in a file without overwriting
body: <p>In my MATLAB code I would like to save the iterated data of all vectors, in which one is recalculating in each time step-loop (depended by time). I am very confused trying to find the best way to do that. I tried to save in a mat file, but I am getting only the last value. Do I have to make a matrix? And save my vectors (1 row-100 columns) to each row? So, I will have to have the maximum time step of rows in this matrix? Is any other solution?</p>