- #1
- 68
- 1
I have been writing a program to compute and change a value a great number of times and writes each value into a file
I did this by continuously storing each value (which is a 7 element vector) into an array, and then writing that into a file using the cvswrite function
The problem I am having is that the array that the array eventually grows to the size that MATLAB gives me an "out of memory" error
so, to fix this, I have been trying to write each value into the .txt file, closing the file, computing the next vector into the same vector that it was computed from (to avoid the memory error), and writing it to the same file, but I can't seem to get it to work
I just end up overwriting the file each time
Is there anyway to get the next vector to print to the next line of the text file, as opposed to just overwriting the initial value in the text file?
any ideas?
Thank you.
I did this by continuously storing each value (which is a 7 element vector) into an array, and then writing that into a file using the cvswrite function
The problem I am having is that the array that the array eventually grows to the size that MATLAB gives me an "out of memory" error
so, to fix this, I have been trying to write each value into the .txt file, closing the file, computing the next vector into the same vector that it was computed from (to avoid the memory error), and writing it to the same file, but I can't seem to get it to work
I just end up overwriting the file each time
Is there anyway to get the next vector to print to the next line of the text file, as opposed to just overwriting the initial value in the text file?
any ideas?
Thank you.