I found the solution. Have a look at Export data from MATLAB to text files. A video tutorial on youtube which explains in full details how to write data to a text file using MATLAB.
Write data from MATLAB to a text file
1 view (last 30 days)
Show older comments
Answered: parham kianian on 8 Jan 2021
I need to perform some numerical analysis in MATLAB and it will result in large volume of output. To store them I need to write output to text file. How can I do that in MATLAB?
More Answers (0)
Find more on Low-Level File I/O in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!