How to write a matrix to a .txt file without overwriting the text file in MATLAB 2019a?

7 views (last 30 days)
I have used writematrix function which has a parameter 'WriteMode' , 'append'. But WriteMode was introduced in 2020 version onwards. I have 2019 version.
I have a loop that runs about 11000 times and generates 2 matrix each time, both of which are to be appended to a text file. But writematrix function overwrites the text file.
I don't want to create a single matrix and write it to text file in one go as it would consume lot of memeory and slow down the code.

Answers (1)

Jan
Jan on 10 Apr 2021
You can write 11'000 files and joint them afterwards.

Products


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!