I'll try that thx.
Anyway I think I've solved by using a matrix for data storing instead of a vector, and by switching rows at every loop. Seems it works well.
Thanks for the tip!
I have to export 2 vectors in 2 different .txt files. My entire program is a loop repeated about 250 times. At the end of every loop, I want to export the results (2 vectors, one is 1X8 and one is 1X4) in two different .txt files (ie: a.txt and b.txt). I've tried to use the function "dlmwrite"...