I have been writing a program to compute and change a value a great number of times and writes each value into a file(adsbygoogle = window.adsbygoogle || []).push({});

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.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB question

Loading...

Similar Threads for MATLAB question |
---|

MATLAB MATLAB: forces acting on an object |

MATLAB Matlab histogram |

MATLAB Sovling Bernoulli's differential equation in matlab? |

MATLAB Matlab-like software |

MATLAB Matlab data into bins |

**Physics Forums | Science Articles, Homework Help, Discussion**