Question: how to export data from matlab to text file?
Answer: Use the writecell function to export the cell array to a text file.
Use fprintf to export the cell array by specifying the format of the output data.